aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/run_build_statistics.py
diff options
context:
space:
mode:
authorGravatar Siddharth Shukla <siddharth.shukla@uber.com>2017-03-11 19:12:43 +0100
committerGravatar Siddharth Shukla <siddharth.shukla@uber.com>2017-03-12 17:47:53 +0100
commitd194f59939de8e9956e0d040266e3da269879a01 (patch)
treed6518b7baea61d2d00922b9af64c45d86023609b /tools/run_tests/run_build_statistics.py
parent0b7bd20de4f0d219c399ef8c01c05026bf12da5d (diff)
Make testing scripts python3.x compatible
Update run_tests/*.py to use six based isomorphisms and print function from __future__ module.
Diffstat (limited to 'tools/run_tests/run_build_statistics.py')
-rwxr-xr-xtools/run_tests/run_build_statistics.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/run_build_statistics.py b/tools/run_tests/run_build_statistics.py
index 654cf95a38..e33e01e703 100755
--- a/tools/run_tests/run_build_statistics.py
+++ b/tools/run_tests/run_build_statistics.py
@@ -30,6 +30,8 @@
"""Tool to get build statistics from Jenkins and upload to BigQuery."""
+from __future__ import print_function
+
import argparse
import jenkinsapi
from jenkinsapi.custom_exceptions import JenkinsAPIException
@@ -243,6 +245,6 @@ for build_name in _BUILDS.keys() if 'all' in args.builds else args.builds:
rows = [big_query_utils.make_row(build_number, build_result)]
if not big_query_utils.insert_rows(bq, _PROJECT_ID, _DATASET_ID, build_name,
rows):
- print '====> Error uploading result to bigquery.'
+ print('====> Error uploading result to bigquery.')
sys.exit(1)