llvm.org GIT mirror llvm / dc76bdf
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365895 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Bader a month ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11181118 codeStr = str(result.exitCode)
11191119 out += "error: command failed with exit status: %s\n" % (
11201120 codeStr,)
1121 if litConfig.maxIndividualTestTime > 0:
1121 if litConfig.maxIndividualTestTime > 0 and result.timeoutReached:
11221122 out += 'error: command reached timeout: %s\n' % (
11231123 str(result.timeoutReached),)