diff options
Diffstat (limited to 'tests/run.py')
-rw-r--r-- | tests/run.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/run.py b/tests/run.py index 93ea82edd..6e4b45311 100644 --- a/tests/run.py +++ b/tests/run.py @@ -209,7 +209,9 @@ test_filename = config # for ruby configurations, remove the protocol name from the test filename if re.search('-ruby', test_filename): test_filename = test_filename.split('-ruby')[0]+'-ruby' -execfile(joinpath(tests_root, 'configs', test_filename + '.py')) +exec(compile( \ + open(joinpath(tests_root, 'configs', test_filename + '.py')).read(), \ + joinpath(tests_root, 'configs', test_filename + '.py'), 'exec')) # set default maxtick... script can override # -1 means run forever @@ -217,7 +219,9 @@ maxtick = m5.MaxTick # tweak configuration for specific test sys.path.append(joinpath(tests_root, category, mode, name)) -execfile(joinpath(tests_root, category, mode, name, 'test.py')) +exec(compile( \ + open(joinpath(tests_root, category, mode, name, 'test.py')).read(), \ + joinpath(tests_root, category, mode, name, 'test.py'), 'exec')) # Initialize all CPUs in a system def initCPUs(sys): |