[llvm] r284056 - [lit] Fix FormatError on individual test timeout

Michal Gorny via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 12 14:40:04 PDT 2016


Author: mgorny
Date: Wed Oct 12 16:40:04 2016
New Revision: 284056

URL: http://llvm.org/viewvc/llvm-project?rev=284056&view=rev
Log:
[lit] Fix FormatError on individual test timeout

Differential Revision: https://reviews.llvm.org/D25195

Modified:
    llvm/trunk/utils/lit/lit/TestRunner.py

Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=284056&r1=284055&r2=284056&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Wed Oct 12 16:40:04 2016
@@ -498,7 +498,7 @@ def executeScriptInternal(test, litConfi
                 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
 




More information about the llvm-commits mailing list