diff options
| author | J08nY | 2024-08-18 22:28:29 +0200 |
|---|---|---|
| committer | J08nY | 2024-08-18 22:28:29 +0200 |
| commit | 10115e0359120039fa9282e79a8cf1fab48ef5b9 (patch) | |
| tree | 786455c1964ba2f535dc10916cc3cf48cecdbc6a | |
| parent | d79dccc0627ecf240f5c2f7f913f66da70bb5be1 (diff) | |
| download | ECTester-10115e0359120039fa9282e79a8cf1fab48ef5b9.tar.gz ECTester-10115e0359120039fa9282e79a8cf1fab48ef5b9.tar.zst ECTester-10115e0359120039fa9282e79a8cf1fab48ef5b9.zip | |
Only test if build worked in test_all.
| -rw-r--r-- | nix/test_all.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nix/test_all.py b/nix/test_all.py index 68e5257..ab9dcdc 100644 --- a/nix/test_all.py +++ b/nix/test_all.py @@ -64,7 +64,7 @@ def wrong_options(library): return default_options(library) def build_library(library, version): - command = ["nix", "build", f"?submodules=1#{library}.{version}"] + command = ["nix", "build", "--quiet", f"?submodules=1#{library}.{version}"] result = sp.run(command, check=False) print(f"build {library} {version} = {result.returncode}") return result.returncode == 0 @@ -82,7 +82,6 @@ def test_library(library, test_suite, version): print(f"run {library} {test_suite} {version} = {result.returncode}") except sp.TimeoutExpired: print(f"run {library} {test_suite} {version} timed-out!") - def main(): parser = argparse.ArgumentParser() @@ -139,8 +138,9 @@ def main(): versions = list(json.load(f).keys()) for version in versions: built = build_library(library, version) - for suite in suites2test: - test_library(library, suite, version) + if built: + for suite in suites2test: + test_library(library, suite, version) if __name__ == '__main__': |
