[llvm] r174089 - [lit] Fix bug where InternalShellError messages were discarded.
Daniel Dunbar
daniel at zuster.org
Thu Jan 31 12:58:16 PST 2013
Author: ddunbar
Date: Thu Jan 31 14:58:16 2013
New Revision: 174089
URL: http://llvm.org/viewvc/llvm-project?rev=174089&view=rev
Log:
[lit] Fix bug where InternalShellError messages were discarded.
- Also, change the exit code to match 'sh'.
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=174089&r1=174088&r2=174089&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Thu Jan 31 14:58:16 2013
@@ -256,9 +256,8 @@ def executeScriptInternal(test, litConfi
try:
exitCode = executeShCmd(cmd, test.config, cwd, results)
except InternalShellError,e:
- out = ''
- err = e.message
- exitCode = 255
+ exitCode = 127
+ results.append((e.command, '', e.message, exitCode))
out = err = ''
for i,(cmd, cmd_out,cmd_err,res) in enumerate(results):
More information about the llvm-commits
mailing list