]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
u_boot_pylib: Avoid concurrent execution of only one test
authorSimon Glass <sjg@chromium.org>
Tue, 29 Apr 2025 13:22:04 +0000 (07:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 27 May 2025 09:07:41 +0000 (10:07 +0100)
There is no point in spinning up multiple processes if there is only one
test to execute. Add a check for this.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/u_boot_pylib/test_util.py

index d46c3df50940f413c6bb338e12489625c74ff95b..fc441a78dc15415b2c239de3dca9d0dd8f9796d9 100644 (file)
@@ -191,7 +191,7 @@ def run_test_suites(toolname, debug, verbosity, test_preserve_dirs, processes,
         resultclass=FullTextTestResult,
     )
 
-    if use_concurrent and processes != 1:
+    if use_concurrent and processes != 1 and not test_name:
         suite = ConcurrentTestSuite(suite,
                 fork_for_tests(processes or multiprocessing.cpu_count()))