Skip to content

Commit

Permalink
test if EXPDIR is in base
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed May 31, 2024
1 parent 46d52bf commit eba677e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci-unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
pytest -v test_setup.py --junitxml $GITHUB_WORKSPACE/ci/scripts/tests/test-results.xml
ls $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM
ls $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
cat $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
grep EXPDIR $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
${GITHUB_WORKSPACE}/workflow/setup_xml.py $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM
Expand Down
6 changes: 5 additions & 1 deletion workflow/setup_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ def main(*argv):
'taskthrottle': user_inputs.taskthrottle,
'verbosity': user_inputs.verbosity}

print("expdir:",user_inputs.expdir)
cfg = Configuration(user_inputs.expdir)

base = cfg.parse_config('config.base')
print("base Dict", base)
if 'EXPDIR' in base:
print("base EXPDIR", base['EXPDIR'])
else:
print("base EXPDIR is not in base")

check_expdir(user_inputs.expdir, base['EXPDIR'])

Expand Down

0 comments on commit eba677e

Please sign in to comment.