diff options
Diffstat (limited to 'tests/quick/se')
-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) |