aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/test_all.py7
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():