summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Bader <alexey.bader@intel.com>2019-07-12 12:48:43 +0000
committerAlexey Bader <alexey.bader@intel.com>2019-07-12 12:48:43 +0000
commit07cbeaa118e865c477a0b5192a5c87116a40bb6b (patch)
treee49937aa101bbd1c3621558399c19757f3f3927f
parent0d26d6f887101afa0a46aec178bd6f7237f02734 (diff)
downloadbcm5719-llvm-07cbeaa118e865c477a0b5192a5c87116a40bb6b.tar.gz
bcm5719-llvm-07cbeaa118e865c477a0b5192a5c87116a40bb6b.zip
[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 llvm-svn: 365895
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index 69fa4e0d47b..ac627d51c1c 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -1119,7 +1119,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
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),)
OpenPOWER on IntegriCloud