]> granicus.if.org Git - llvm/commitdiff
[lit] Fix FormatError on individual test timeout
authorMichal Gorny <mgorny@gentoo.org>
Wed, 12 Oct 2016 21:40:04 +0000 (21:40 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Wed, 12 Oct 2016 21:40:04 +0000 (21:40 +0000)
Differential Revision: https://reviews.llvm.org/D25195

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284056 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/TestRunner.py

index b283e7f6f104408d67d440b5618fef0c202ea430..41af9da2638568f0b05b0f2b053988b113cfa5bd 100644 (file)
@@ -498,7 +498,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
                 result.exitCode,)
         if litConfig.maxIndividualTestTime > 0:
             out += 'error: command reached timeout: %s\n' % (
-                i, str(result.timeoutReached))
+                str(result.timeoutReached),)
 
     return out, err, exitCode, timeoutInfo