]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
run.py: use single mode if -j1 and on Linux
authorJason Ish <jason.ish@oisf.net>
Fri, 24 May 2024 18:45:34 +0000 (12:45 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 27 May 2024 21:49:58 +0000 (15:49 -0600)
Single mode can expose some errors that are hidden in mp mode, so it
can be useful to use even on Linux.

run.py

diff --git a/run.py b/run.py
index 15160705090c541de9fe72ca8afa1c2ba0852215..6b45f10fc0106e265c5dcc1d028d8f3115b90e17 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1179,7 +1179,7 @@ def main():
     # Sort alphabetically.
     tests.sort()
 
-    if LINUX:
+    if LINUX and args.j > 1:
         run_mp(args.j, tests, dirpath, args, cwd, suricata_config)
     else:
         run_single(tests, dirpath, args, cwd, suricata_config)