git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f18e87
)
u_boot_pylib: Avoid concurrent execution of only one test
author
Simon Glass
<sjg@chromium.org>
Tue, 29 Apr 2025 13:22:04 +0000
(07:22 -0600)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/tools/u_boot_pylib/test_util.py
b/tools/u_boot_pylib/test_util.py
index
d46c3df
..
fc441a7
100644
(file)
--- 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()))