[llvm-commits] [llvm] r110169 - /llvm/trunk/utils/lit/lit/TestRunner.py
Dan Gohman
gohman at apple.com
Tue Aug 3 17:05:16 PDT 2010
Author: djg
Date: Tue Aug 3 19:05:16 2010
New Revision: 110169
URL: http://llvm.org/viewvc/llvm-project?rev=110169&view=rev
Log:
Don't print "Command output (stdout):" when the command has no output,
and same for stderr, to avoid clutter in the output.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=110169&r1=110168&r2=110169&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Tue Aug 3 19:05:16 2010
@@ -487,14 +487,16 @@
print >>output, '\n'.join(script)
print >>output, "--"
print >>output, "Exit Code: %r" % exitCode
- print >>output, "Command Output (stdout):"
- print >>output, "--"
- output.write(out)
- print >>output, "--"
- print >>output, "Command Output (stderr):"
- print >>output, "--"
- output.write(err)
- print >>output, "--"
+ 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)
+ print >>output, "--"
return (status, output.getvalue())
def executeTclTest(test, litConfig):
More information about the llvm-commits
mailing list