Skip to content

Commit

Permalink
Mark SETUP as FAIL if case.cmpgen_namelists fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Sep 13, 2024
1 parent bb13cf5 commit 35305d2
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 35305d2

Please sign in to comment.