diff options
author | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-03-09 11:47:25 +0000 |
---|---|---|
committer | Giacomo Travaglini <giacomo.travaglini@arm.com> | 2018-03-09 22:45:20 +0000 |
commit | b3d0f2d66a5bf79f66893adcb85b0ac78daf3f65 (patch) | |
tree | b69b4472d7a21b9bdb8a5d43f197d03c850fd7e0 /tests/quick | |
parent | ee16a95ec8a7f2d207320670a135065981033f61 (diff) | |
download | gem5-b3d0f2d66a5bf79f66893adcb85b0ac78daf3f65.tar.xz |
tests: Python regression scripts using new print function
Change-Id: I92060da4537e4ff1c0ff665f2f6ffc3850c50e88
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Giacomo Gabrielli <giacomo.gabrielli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/8892
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'tests/quick')
-rw-r--r-- | tests/quick/se/04.gpu/test.py | 5 | ||||
-rw-r--r-- | tests/quick/se/70.twolf/test.py | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/tests/quick/se/04.gpu/test.py b/tests/quick/se/04.gpu/test.py index 0de781c88..14cd74be3 100644 --- a/tests/quick/se/04.gpu/test.py +++ b/tests/quick/se/04.gpu/test.py @@ -32,11 +32,14 @@ # # Author: Brad Beckmann # + +from __future__ import print_function + executable = binpath('gpu-hello') kernel_path = os.path.dirname(executable) kernel_files = glob.glob(os.path.join(kernel_path, '*.asm')) if kernel_files: - print "Using GPU kernel code file(s)", ",".join(kernel_files) + print("Using GPU kernel code file(s)", ",".join(kernel_files)) else: fatal("Can't locate kernel code (.asm) in " + kernel_path) diff --git a/tests/quick/se/70.twolf/test.py b/tests/quick/se/70.twolf/test.py index a63442ad1..cc131b047 100644 --- a/tests/quick/se/70.twolf/test.py +++ b/tests/quick/se/70.twolf/test.py @@ -26,7 +26,10 @@ # # Authors: Korey Sewell +from __future__ import print_function + m5.util.addToPath('../configs/common') + from cpu2000 import twolf import os @@ -40,8 +43,8 @@ sv2_file = os.path.join(cwd, workload.input_set + '.sv2') try: os.unlink(sav_file) except: - print "Couldn't unlink ", sav_file + print("Couldn't unlink ", sav_file) try: os.unlink(sv2_file) except: - print "Couldn't unlink ", sv2_file + print("Couldn't unlink ", sv2_file) |