summaryrefslogtreecommitdiff
path: root/tools/u_boot_pylib/test_util.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-04-29 07:22:04 -0600
committerSimon Glass <sjg@chromium.org>2025-05-27 10:07:41 +0100
commit55342144af598453c2de0271b8df50821f39ba13 (patch)
tree723d22d4bc4be3533fca49a7e38ea6c703d0042a /tools/u_boot_pylib/test_util.py
parent1f18e8798fe2f89294925ad3cb5acf1754b080ca (diff)
u_boot_pylib: Avoid concurrent execution of only one test
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>
Diffstat (limited to 'tools/u_boot_pylib/test_util.py')
-rw-r--r--tools/u_boot_pylib/test_util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/u_boot_pylib/test_util.py b/tools/u_boot_pylib/test_util.py
index d46c3df5094..fc441a78dc1 100644
--- a/tools/u_boot_pylib/test_util.py
+++ b/tools/u_boot_pylib/test_util.py
@@ -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()))