Run readelf tests in parallel by default
authorEli Bendersky <eliben@gmail.com>
Fri, 10 Dec 2021 14:49:08 +0000 (06:49 -0800)
committerEli Bendersky <eliben@gmail.com>
Fri, 10 Dec 2021 14:49:08 +0000 (06:49 -0800)
test/all_tests.py

index 4cb8e3cac5a9adc15bb9b470fc6900381628d80d..289a0fd6fdcf036e724274a368e0ab3684f8d3c4 100755 (executable)
@@ -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())