diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 18:04:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-01-31 18:04:45 +0000 |
commit | 213a789a711724c864defdc2c3e1208d6c5b7fd4 (patch) | |
tree | 683793a3a53929bf71b9846426e53ece5fb814b3 | |
parent | d5f7dbba2e1a34b4a33434b91caf1fb7c1fab452 (diff) | |
download | external_llvm-213a789a711724c864defdc2c3e1208d6c5b7fd4.zip external_llvm-213a789a711724c864defdc2c3e1208d6c5b7fd4.tar.gz external_llvm-213a789a711724c864defdc2c3e1208d6c5b7fd4.tar.bz2 |
[lit] TestRunner: Eliminate failDueToStderr argument, which is now unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174071 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/lit/lit/TestRunner.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py index 509427c..9bd3e43 100644 --- a/utils/lit/lit/TestRunner.py +++ b/utils/lit/lit/TestRunner.py @@ -428,17 +428,14 @@ def parseIntegratedTestScript(test, normalize_slashes=False, isXFail = isExpectedFail(test, xfails) return script,isXFail,tmpBase,execdir -def formatTestOutput(status, out, err, exitCode, failDueToStderr, script): +def formatTestOutput(status, out, err, exitCode, script): output = StringIO.StringIO() print >>output, "Script:" print >>output, "--" print >>output, '\n'.join(script) print >>output, "--" print >>output, "Exit Code: %r" % exitCode, - if failDueToStderr: - print >>output, "(but there was output on stderr)" - else: - print >>output + print >>output if out: print >>output, "Command Output (stdout):" print >>output, "--" @@ -492,7 +489,4 @@ def executeShTest(test, litConfig, useExternalSh, if ok: return (status,'') - # Sh tests are not considered to fail just from stderr output. - failDueToStderr = False - - return formatTestOutput(status, out, err, exitCode, failDueToStderr, script) + return formatTestOutput(status, out, err, exitCode, script) |