if opts.maxTests is not None:
tests = tests[:opts.maxTests]
+ # Don't create more threads than tests.
+ opts.numThreads = min(len(tests), opts.numThreads)
+
extra = ''
if len(tests) != numTotalTests:
extra = ' of %d' % numTotalTests
else:
print header
- # Don't create more threads than tests.
- opts.numThreads = min(len(tests), opts.numThreads)
-
startTime = time.time()
display = TestingProgressDisplay(opts, len(tests), progressBar)
provider = TestProvider(tests, opts.maxTime)