summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyjutest9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyjutest b/pyjutest
index 68d916e..c3261d7 100755
--- a/pyjutest
+++ b/pyjutest
@@ -4,6 +4,8 @@
#
# pyjutest - junit xml generator
+from __future__ import print_function
+
from junit_xml import TestSuite, TestCase
from pickle import dump, load
from subprocess import Popen, PIPE, STDOUT
@@ -42,3 +44,10 @@ with open('pyjutest.dat', 'wb') as dat:
with open('pyjutest.xml', 'w') as xml:
TestSuite.to_file(xml, tss, prettyprint=True)
+
+print("%s STDOUT:" % sys.argv[1])
+for l in out.decode().split("\n"):
+ print(l)
+print("%s STDERR:" % sys.argv[1])
+for l in err.decode().split("\n"):
+ print(l, file=sys.stderr)