Skip to content

Commit

Permalink
Add timeout to test-all.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Aug 17, 2024
1 parent 759c37c commit 7946650
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nix/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ def test_library(library, test_suite, version):
opts = base_options(library)
opts.extend(globals()[f"{test_suite.replace('-', '_')}_options"](library))
command = ["nix", "run", f"?submodules=1#{library}.{version}", "--", "test", f"-oyml:results/{library}_{test_suite}_{version}.yml", *opts, test_suite, library]
print(command)
process = sp.run(command)
print(" ".join(command))
try:
sp.run(command, timeout=60)
except sp.TimeoutExpired:
print(f"{library} {test_suite} {version} timed-out!")


def main():
Expand Down

0 comments on commit 7946650

Please sign in to comment.