mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 02:22:29 +00:00
Don't print "Command output (stdout):" when the command has no output,
and same for stderr, to avoid clutter in the output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -487,10 +487,12 @@ def formatTestOutput(status, out, err, exitCode, script):
|
|||||||
print >>output, '\n'.join(script)
|
print >>output, '\n'.join(script)
|
||||||
print >>output, "--"
|
print >>output, "--"
|
||||||
print >>output, "Exit Code: %r" % exitCode
|
print >>output, "Exit Code: %r" % exitCode
|
||||||
|
if out:
|
||||||
print >>output, "Command Output (stdout):"
|
print >>output, "Command Output (stdout):"
|
||||||
print >>output, "--"
|
print >>output, "--"
|
||||||
output.write(out)
|
output.write(out)
|
||||||
print >>output, "--"
|
print >>output, "--"
|
||||||
|
if err:
|
||||||
print >>output, "Command Output (stderr):"
|
print >>output, "Command Output (stderr):"
|
||||||
print >>output, "--"
|
print >>output, "--"
|
||||||
output.write(err)
|
output.write(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user