mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[lit] TestRunner: Eliminate failDueToStderr argument, which is now unused.
llvm-svn: 174071
This commit is contained in:
parent
68b35e0a6d
commit
6da49ae5e5
@ -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