Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: test_exporters.py
- Revision:
- 43:2a7da56ebd24
- Parent:
- 37:f8cfeb185c30
--- a/test_exporters.py Mon Nov 06 13:17:14 2017 -0600
+++ b/test_exporters.py Tue Sep 25 13:43:09 2018 -0500
@@ -304,11 +304,13 @@
def exporter_print_helper(self, array, print_log=False):
for item in array:
- print " * %s::%s::%s" % (item["target_name"], item["toolchain_name"], item["id"])
+ print(" * %s::%s::%s" % (item["target_name"],
+ item["toolchain_name"],
+ item["id"]))
if print_log:
log_lines = item["output"].split("\n")
for log_line in log_lines:
- print " %s" % log_line
+ print(" %s" % log_line)
def exporter_print(self, test_result_ext, print_log_for_failures=False):
""" Export test results in print format.
@@ -343,15 +345,15 @@
raise Exception("'test_run' did not have a 'result' value")
if successes:
- print "\n\nBuild successes:"
+ print("\n\nBuild successes:")
self.exporter_print_helper(successes)
if skips:
- print "\n\nBuild skips:"
+ print("\n\nBuild skips:")
self.exporter_print_helper(skips)
if failures:
- print "\n\nBuild failures:"
+ print("\n\nBuild failures:")
self.exporter_print_helper(failures, print_log=print_log_for_failures)
return False
else:
@@ -410,5 +412,5 @@
result += "\n"
# Print result count
- result += "Result: " + ' / '.join(['%s %s' % (value, key) for (key, value) in {k: v for k, v in result_dict.items() if v != 0}.iteritems()])
+ result += "Result: " + ' / '.join(['%s %s' % (value, key) for (key, value) in {k: v for k, v in result_dict.items() if v != 0}.items()])
return result
