Skip to content

Commit

Permalink
The dump diags tool should delete any diags that will be recreated. m…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Hannah committed Nov 18, 2016
1 parent c7cecd9 commit 94910d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/tests/dump_all_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ def dump_diags(exp, diags):
fname = d.filename
print('"{}", "{}", "{}", "{}", "all",' \
'.false., "none", 2'.format(m, n, n, fname, n), file=f)

# Since they will be replaced, remove old diags.
try:
os.remove(d.output)
except OSError:
pass

return exp.force_run()

def main():
Expand Down

0 comments on commit 94910d2

Please sign in to comment.