Skip to content

Commit

Permalink
make the option to fail if no output optional
Browse files Browse the repository at this point in the history
different codes have different ways of doing output, so this
should be generalized in the future if we want it always on
  • Loading branch information
zingale committed Jun 16, 2024
1 parent c8e9987 commit c9d6a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ def test_suite(argv):
except OSError:
suite.log.warn(f"unable to remove {pfile}")

if (match_count == 0):
if suite.fail_on_no_output and match_count == 0:
suite.log.fail("ERROR: test output could not be found!")


Expand Down
3 changes: 3 additions & 0 deletions suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ def __init__(self, args):
# For setting a specific version of cmake
self.cmake = "cmake"

# do we fail if there is no output?
self.fail_on_no_output = 0

@property
def timing_default(self):
""" Determines the format of the wallclock history JSON file """
Expand Down

0 comments on commit c9d6a70

Please sign in to comment.