diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 20:58:16 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 20:58:16 +0000 |
commit | a17da6294da866bf32c0e15bec7f0db0152d31fb (patch) | |
tree | f67f83a7d3257566ecd13fcb58a7f8b86ce17f4d | |
parent | 44e65a512d1332510c78e65aee2c9600766b8e1f (diff) | |
download | bcm5719-llvm-a17da6294da866bf32c0e15bec7f0db0152d31fb.tar.gz bcm5719-llvm-a17da6294da866bf32c0e15bec7f0db0152d31fb.zip |
[lit] Fix bug where InternalShellError messages were discarded.
- Also, change the exit code to match 'sh'.
llvm-svn: 174089
-rw-r--r-- | llvm/utils/lit/lit/TestRunner.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py index 9bd3e430a13..3d0ff546dfb 100644 --- a/llvm/utils/lit/lit/TestRunner.py +++ b/llvm/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): |