[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

llvm-svn: 284056

llvm/utils/lit/lit/TestRunner.py

index b283e7f..41af9da 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