forked from OSchip/llvm-project
[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
This commit is contained in:
parent
0d26d6f887
commit
07cbeaa118
|
@ -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),)
|
||||
|
||||
|
|
Loading…
Reference in New Issue