llvm.org GIT mirror llvm / 8a7ffe6
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 Dan Gohman 9 years ago
1 changed file(s) with 10 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
486486 print >>output, '\n'.join(script)
487487 print >>output, "--"
488488 print >>output, "Exit Code: %r" % exitCode
489 print >>output, "Command Output (stdout):"
490 print >>output, "--"
491 output.write(out)
492 print >>output, "--"
493 print >>output, "Command Output (stderr):"
494 print >>output, "--"
495 output.write(err)
496 print >>output, "--"
489 if out:
490 print >>output, "Command Output (stdout):"
491 print >>output, "--"
492 output.write(out)
493 print >>output, "--"
494 if err:
495 print >>output, "Command Output (stderr):"
496 print >>output, "--"
497 output.write(err)
498 print >>output, "--"
497499 return (status, output.getvalue())
498500
499501 def executeTclTest(test, litConfig):