[llvm] r365895 - [LIT] Emit timeout error message only if timeout was reached
Alexey Bader via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 05:48:43 PDT 2019
Author: bader
Date: Fri Jul 12 05:48:43 2019
New Revision: 365895
URL: http://llvm.org/viewvc/llvm-project?rev=365895&view=rev
Log:
[LIT] Emit timeout error message only if timeout was reached
Summary:
This improves readability of LIT output: previously
error messages gets emitted that say that there was no error:
error: command reached timeout: False
Patch by Alexey Sachkov.
Reviewers: ddunbar, mgorny, modocache
Reviewed By: mgorny
Subscribers: delcypher, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64240
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=365895&r1=365894&r2=365895&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Jul 12 05:48:43 2019
@@ -1119,7 +1119,7 @@ def executeScriptInternal(test, litConfi
codeStr = str(result.exitCode)
out += "error: command failed with exit status: %s\n" % (
codeStr,)
- if litConfig.maxIndividualTestTime > 0:
+ if litConfig.maxIndividualTestTime > 0 and result.timeoutReached:
out += 'error: command reached timeout: %s\n' % (
str(result.timeoutReached),)
More information about the llvm-commits
mailing list