mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +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, "--"
|
||||
print >>output, "Exit Code: %r" % exitCode
|
||||
if out:
|
||||
print >>output, "Command Output (stdout):"
|
||||
print >>output, "--"
|
||||
output.write(out)
|
||||
print >>output, "--"
|
||||
if err:
|
||||
print >>output, "Command Output (stderr):"
|
||||
print >>output, "--"
|
||||
output.write(err)
|
||||
|
Reference in New Issue
Block a user