Skip to content

Commit

Permalink
Merge pull request #141 from AMReX-Codes/fix_fail_output
Browse files Browse the repository at this point in the history
make the option to fail if no output optional
  • Loading branch information
zingale authored Jun 17, 2024
2 parents c8e9987 + c9d6a70 commit bc0440a
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 bc0440a

Please sign in to comment.