From: Simon Glass Date: Tue, 29 Apr 2025 13:22:04 +0000 (-0600) Subject: u_boot_pylib: Avoid concurrent execution of only one test X-Git-Tag: v2025.10-rc1~118^2~69^2~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55342144af598453c2de0271b8df50821f39ba13;p=thirdparty%2Fu-boot.git 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 --- 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()))