From 5654ae9be080add8bee6eab8d97ced580e6262a9 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 31 Jul 2022 16:21:22 -0400 Subject: [PATCH] add a try/except allow for plt00000 to be the only one -- needed for unit tests --- regtest.py | 5 ++++- suite.py | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/regtest.py b/regtest.py index 707ed8f..a9a1976 100755 --- a/regtest.py +++ b/regtest.py @@ -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: diff --git a/suite.py b/suite.py index 68434b2..f91292a 100644 --- a/suite.py +++ b/suite.py @@ -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):