summaryrefslogtreecommitdiff
path: root/tests/legacy-configs
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2019-01-28 16:53:47 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2019-02-25 14:24:08 +0000
commitdebb5daace15e17bae7c07937852f6f738633c85 (patch)
treec8b2f5e12bcf65633f1e9df949cd04bcdfae7a21 /tests/legacy-configs
parentd63f735663d710839f79a4b88af67da968995168 (diff)
downloadgem5-debb5daace15e17bae7c07937852f6f738633c85.tar.xz
tests: Update test scripts to work with Python 3
Change-Id: I71b1e595765fed9e9f234c9722c33ac5348d4f11 Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/15999 Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'tests/legacy-configs')
-rw-r--r--tests/legacy-configs/run.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/legacy-configs/run.py b/tests/legacy-configs/run.py
index 3eac49095..47b5ab749 100644
--- a/tests/legacy-configs/run.py
+++ b/tests/legacy-configs/run.py
@@ -85,7 +85,7 @@ args = parser.parse_args()
executable = args.executable
for config in args.config:
- execfile(config)
+ exec(compile(open(config).read(), config, 'exec'))
# Initialize all CPUs in a system
def initCPUs(sys):