Skip to content

Commit

Permalink
Merge pull request #69 from GaloisInc/56-fix-mps-test-fail
Browse files Browse the repository at this point in the history
Raise an error when trying to run MPS tests without QUICK=1
  • Loading branch information
podhrmic authored Jun 17, 2024
2 parents 823807f + 7e16299 commit 8a54ae6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/mission_protection_system/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ def main():
cases = cases_file.readlines()
if QUICK is not None and len(cases) > 4:
cases = cases[0:3]
elif QUICK is None:
print("""You are running the scenarios without QUICK=1.
This will lead to an error, as not all scenarios
were generated correctly. See https://github.com/GaloisInc/HARDENS/issues/130
for more details. Rerun with QUICK=1 to fix this error.
Exiting now!
""")
sys.exit(1)
cases = enumerate(cases)
for (i,case) in cases:
print(f"Running case {i}")
Expand Down

0 comments on commit 8a54ae6

Please sign in to comment.