mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00:00
[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
This commit is contained in:
parent
d5f7dbba2e
commit
213a789a71
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user