]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
run: fix maximum number of parallel processes
authorTharushi Jayasekara <tharushi68@gmail.com>
Fri, 8 Jan 2021 06:03:58 +0000 (11:33 +0530)
committerVictor Julien <victor@inliniac.net>
Thu, 11 Feb 2021 18:55:22 +0000 (19:55 +0100)
Unless -j is provided, set the maximum number of processes to 8 if
the cpu count exceeds that.

run.py

diff --git a/run.py b/run.py
index e5879b821e1a80b9e7a592ce00b77044c724bb73..7afe964953392786e964d47e0cc002cfc1cc65e9 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -882,7 +882,7 @@ def main():
 
     parser = argparse.ArgumentParser(description="Verification test runner.")
     parser.add_argument("-v", dest="verbose", action="store_true")
-    parser.add_argument("-j", type=int, default=mp.cpu_count(),
+    parser.add_argument("-j", type=int, default=min(8, mp.cpu_count()),
                         help="Number of jobs to run")
     parser.add_argument("--force", dest="force", action="store_true",
                         help="Force running of skipped tests")