aboutsummaryrefslogtreecommitdiff
path: root/jenkins
diff options
context:
space:
mode:
authorcclauss <cclauss@bluewin.ch>2017-08-18 01:18:50 +0200
committerGitHub <noreply@github.com>2017-08-18 01:18:50 +0200
commita1acf253277407da2e543ef380292705cbd27da6 (patch)
treefad6a53de222f01dd3f6076a12f5073247184b6d /jenkins
parent067543cd6d0a6475b4d34f55a32236dac819461a (diff)
downloadprotobuf-a1acf253277407da2e543ef380292705cbd27da6.tar.gz
protobuf-a1acf253277407da2e543ef380292705cbd27da6.tar.bz2
protobuf-a1acf253277407da2e543ef380292705cbd27da6.zip
print() function and lose the semicolons (;)
Diffstat (limited to 'jenkins')
-rw-r--r--jenkins/make_test_output.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/jenkins/make_test_output.py b/jenkins/make_test_output.py
index b1f2e2c0..98536853 100644
--- a/jenkins/make_test_output.py
+++ b/jenkins/make_test_output.py
@@ -17,11 +17,12 @@ detailed test results. It runs as the last step before the Jenkins build
finishes.
"""
-import os;
-import sys;
+import os
+import sys
from yattag import Doc
from collections import defaultdict
+
def readtests(basedir):
tests = defaultdict(dict)
@@ -68,6 +69,7 @@ def readtests(basedir):
return ret
+
def genxml(tests):
doc, tag, text = Doc().tagtext()
@@ -86,6 +88,7 @@ def genxml(tests):
return doc.getvalue()
+
sys.stderr.write("make_test_output.py: writing XML from directory: " +
- sys.argv[1] + "\n");
-print genxml(readtests(sys.argv[1]))
+ sys.argv[1] + "\n")
+print(genxml(readtests(sys.argv[1])))