Skip to content

Commit

Permalink
Merge pull request E3SM-Project#86 from altheaden/ignore-missing-step…
Browse files Browse the repository at this point in the history
…-after-run

Ignore nonexistent `step_after_run.pickle` file
  • Loading branch information
xylar authored Jun 14, 2023
2 parents 1f0ae52 + 2e3826f commit ced1a1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion polaris/run/serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,10 @@ def _run_step(test_case, step, new_log_file, available_resources,

if len(missing_files) > 0:
# We want to indicate that the step failed by removing the pickle
os.remove('step_after_run.pickle')
try:
os.remove('step_after_run.pickle')
except FileNotFoundError:
pass
raise OSError(
f'output file(s) missing in step {step.name} of '
f'{step.component.name}/{step.test_group.name}/'
Expand Down

0 comments on commit ced1a1e

Please sign in to comment.