summaryrefslogtreecommitdiff
path: root/Test/runTests.py
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-20 09:48:50 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-07-20 09:48:50 -0700
commit1f53d595ff0e4282ac51a68b124e94cd1af951ec (patch)
tree29b15bdc31aa9d35f18e0ed64badeeb84e29178e /Test/runTests.py
parent7c766a43a77845ed1af5a0e5367e7a21edf13a8f (diff)
Add missing .expect file
+ a small fix in runTests.py
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: