From: Eli Bendersky Date: Fri, 10 Dec 2021 14:49:08 +0000 (-0800) Subject: Run readelf tests in parallel by default X-Git-Tag: v0.28~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=18a82d85d8dd69a51ceefa77dd2bf05d83bc4b39;p=pyelftools.git Run readelf tests in parallel by default --- diff --git a/test/all_tests.py b/test/all_tests.py index 4cb8e3c..289a0fd 100755 --- a/test/all_tests.py +++ b/test/all_tests.py @@ -11,8 +11,8 @@ from __future__ import print_function import subprocess, sys from utils import is_in_rootdir -def run_test_script(path): - cmd = [sys.executable, path] +def run_test_script(path, *args): + cmd = [sys.executable, path] + list(args) print("Running '%s'" % ' '.join(cmd)) subprocess.check_call(cmd) @@ -22,7 +22,7 @@ def main(): return 1 run_test_script('test/run_all_unittests.py') run_test_script('test/run_examples_test.py') - run_test_script('test/run_readelf_tests.py') + run_test_script('test/run_readelf_tests.py', '--parallel') if __name__ == '__main__': sys.exit(main())