[lit] Fix bug where InternalShellError messages were discarded.

- Also, change the exit code to match 'sh'.

llvm-svn: 174089
This commit is contained in:
Daniel Dunbar 2013-01-31 20:58:16 +00:00
parent 44e65a512d
commit a17da6294d
1 changed files with 2 additions and 3 deletions

View File

@ -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):