diff options
| author | J08nY | 2024-08-17 23:17:22 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-17 23:17:22 +0200 |
| commit | 7946650a1492276ce48c924248518c9b5416d0bb (patch) | |
| tree | 46a1cf8a7c8c1435c2b951fb0fa2137d212ef574 /nix/test_all.py | |
| parent | 759c37c855512bc76578dce935d240cffcb6f999 (diff) | |
| download | ECTester-7946650a1492276ce48c924248518c9b5416d0bb.tar.gz ECTester-7946650a1492276ce48c924248518c9b5416d0bb.tar.zst ECTester-7946650a1492276ce48c924248518c9b5416d0bb.zip | |
Diffstat (limited to 'nix/test_all.py')
| -rw-r--r-- | nix/test_all.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/test_all.py b/nix/test_all.py index 2017a2c..0701acd 100644 --- a/nix/test_all.py +++ b/nix/test_all.py @@ -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(): |
