Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise an error when trying to run MPS tests without QUICK=1 #69

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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