summaryrefslogtreecommitdiff
path: root/Test/runTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'Test/runTests.py')
-rw-r--r--Test/runTests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/runTests.py b/Test/runTests.py
index efabdc73..b8d8e6f4 100644
--- a/Test/runTests.py
+++ b/Test/runTests.py
@@ -370,7 +370,7 @@ def run_tests(args):
args.exclude + Defaults.ALWAYS_EXCLUDED, args.timeout))
tests.sort(key=operator.attrgetter("name"))
- args.njobs = min(args.njobs or os.cpu_count() or 1, len(tests))
+ args.njobs = max(1, min(args.njobs or os.cpu_count() or 1, len(tests)))
debug(Debug.INFO, "\nRunning {} test(s) on {} testing thread(s), timeout is {:.2f}s, started at {}".format(len(tests), args.njobs, args.timeout, strftime("%H:%M:%S")))
try: