Skip to content

Commit

Permalink
Merge pull request #4681 from samsrabin/namelist-fail-setup-fail
Browse files Browse the repository at this point in the history
Mark SETUP as FAIL if case.cmpgen_namelists fails
  • Loading branch information
jedwards4b authored Sep 13, 2024
2 parents bb13cf5 + 35305d2 commit 64b2335
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CIME/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,10 +1020,14 @@ def _setup_phase(self, test):
from_dir=test_dir,
env=env,
)
expect(
cmdstat in [0, TESTS_FAILED_ERR_CODE],
"Fatal error in case.cmpgen_namelists: {}".format(output),
)
try:
expect(
cmdstat in [0, TESTS_FAILED_ERR_CODE],
"Fatal error in case.cmpgen_namelists: {}".format(output),
)
except Exception:
self._update_test_status_file(test, SETUP_PHASE, TEST_FAIL_STATUS)
raise

if self._single_exe:
with Case(self._get_test_dir(test), read_only=False) as case:
Expand Down

0 comments on commit 64b2335

Please sign in to comment.