summaryrefslogtreecommitdiff
path: root/utils/lit/lit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-01-31 20:58:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-01-31 20:58:16 +0000
commitb62fb4ba5cf61070486287da393ada566b4ad4ed (patch)
tree3df400403e9fa039360b023294b0ec22f72f5244 /utils/lit/lit
parent3ab115ce8f5262608630d67c28707dbd24361d03 (diff)
downloadllvm-b62fb4ba5cf61070486287da393ada566b4ad4ed.tar.gz
llvm-b62fb4ba5cf61070486287da393ada566b4ad4ed.tar.bz2
llvm-b62fb4ba5cf61070486287da393ada566b4ad4ed.tar.xz
[lit] Fix bug where InternalShellError messages were discarded.
- Also, change the exit code to match 'sh'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/lit')
-rw-r--r--utils/lit/lit/TestRunner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index 9bd3e430a1..3d0ff546df 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/utils/lit/lit/TestRunner.py
@@ -256,9 +256,8 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
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):