Skip to content

Commit

Permalink
add a try/except
Browse files Browse the repository at this point in the history
allow for plt00000 to be the only one -- needed for unit tests
  • Loading branch information
zingale committed Jul 31, 2022
1 parent 0b973f6 commit 5654ae9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,10 @@ def test_suite(argv):
shutil.copy(test.errfile, suite.full_web_dir)
test.has_stderr = True
if test.doComparison:
shutil.copy(test.comparison_outfile, suite.full_web_dir)
try:
shutil.copy(test.comparison_outfile, suite.full_web_dir)
except FileNotFoundError:
pass
try:
shutil.copy(f"{test.name}.analysis.out", suite.full_web_dir)
except:
Expand Down
4 changes: 0 additions & 4 deletions suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,6 @@ def get_compare_file(self, output_dir=None):
plts.sort()
last_plot = plts.pop()

if last_plot.endswith("00000"):
self.log.warn("only plotfile 0 was output -- skipping comparison")
return ""

return last_plot

def measure_performance(self):
Expand Down

0 comments on commit 5654ae9

Please sign in to comment.