[PATCH] D25195: [lit] Fix FormatError on individual test timeout

Michał Górny via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 09:29:26 PDT 2016


mgorny created this revision.
mgorny added a reviewer: ddunbar.
mgorny added a subscriber: llvm-commits.
Herald added a subscriber: modocache.

Fix Python FormatError that occurs when lit is trying to output test timeout message. Seems to be broken since r271610


https://reviews.llvm.org/D25195

Files:
  utils/lit/lit/TestRunner.py


Index: utils/lit/lit/TestRunner.py
===================================================================
--- utils/lit/lit/TestRunner.py
+++ utils/lit/lit/TestRunner.py
@@ -498,7 +498,7 @@
                 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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25195.73292.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161003/473c0a6e/attachment.bin>


More information about the llvm-commits mailing list