Skip to content

Commit eba677e

Browse files
test if EXPDIR is in base
1 parent 46d52bf commit eba677e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci-unit_tests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ jobs:
4848
pytest -v test_setup.py --junitxml $GITHUB_WORKSPACE/ci/scripts/tests/test-results.xml
4949
ls $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM
5050
ls $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
51-
cat $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
5251
grep EXPDIR $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM/config.base
5352
${GITHUB_WORKSPACE}/workflow/setup_xml.py $GITHUB_WORKSPACE/ci/scripts/tests/testdata/RUNDIR/EXPDIR/C48_ATM
5453

workflow/setup_xml.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,14 @@ def main(*argv):
5757
'taskthrottle': user_inputs.taskthrottle,
5858
'verbosity': user_inputs.verbosity}
5959

60+
print("expdir:",user_inputs.expdir)
6061
cfg = Configuration(user_inputs.expdir)
6162

6263
base = cfg.parse_config('config.base')
63-
print("base Dict", base)
64+
if 'EXPDIR' in base:
65+
print("base EXPDIR", base['EXPDIR'])
66+
else:
67+
print("base EXPDIR is not in base")
6468

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

0 commit comments

Comments
 (0)