summaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-08-17 04:15:41 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-08-17 04:15:41 +0000
commitc797f2e9c7121c7a8c859ad2a8ede8f8639e4ff5 (patch)
tree5fc491bebb92e1d95fe6ddd4932aa9b335c5d56f /utils/lit
parentcbeb8d9869aafec3c2c1ee0922f0a4d5bb4a916a (diff)
downloadllvm-c797f2e9c7121c7a8c859ad2a8ede8f8639e4ff5.tar.gz
llvm-c797f2e9c7121c7a8c859ad2a8ede8f8639e4ff5.tar.bz2
llvm-c797f2e9c7121c7a8c859ad2a8ede8f8639e4ff5.tar.xz
lit: Show actually created count of threads. The incorrect threads count is printed if the number of tests are less than the number of default threads.
Thanks to Vinson Lee, reported in PR13620. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rwxr-xr-xutils/lit/lit/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/lit/lit/main.py b/utils/lit/lit/main.py
index 039868da78..25bbcbd9f2 100755
--- a/utils/lit/lit/main.py
+++ b/utils/lit/lit/main.py
@@ -566,6 +566,9 @@ def main(builtinParameters = {}): # Bump the GIL check interval, its more imp
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
@@ -589,9 +592,6 @@ def main(builtinParameters = {}): # Bump the GIL check interval, its more imp
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)