From b3d0f2d66a5bf79f66893adcb85b0ac78daf3f65 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Fri, 9 Mar 2018 11:47:25 +0000 Subject: tests: Python regression scripts using new print function Change-Id: I92060da4537e4ff1c0ff665f2f6ffc3850c50e88 Signed-off-by: Giacomo Travaglini Reviewed-by: Giacomo Gabrielli Reviewed-on: https://gem5-review.googlesource.com/8892 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Jason Lowe-Power --- tests/run.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/run.py') diff --git a/tests/run.py b/tests/run.py index ff5be230d..845a3eb62 100644 --- a/tests/run.py +++ b/tests/run.py @@ -38,6 +38,8 @@ # # Authors: Steve Reinhardt +from __future__ import print_function + import os import sys import re @@ -57,7 +59,7 @@ def skip_test(reason=""): """ if reason: - print "Skipping test: %s" % reason + print("Skipping test: %s" % reason) sys.exit(2) def has_sim_object(name): @@ -143,7 +145,7 @@ def run_test(root): # simulate until program terminates exit_event = m5.simulate(maxtick) - print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() + print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()) # Since we're in batch mode, dont allow tcp socket connections m5.disableAllListeners() -- cgit v1.2.3