summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run.py')
-rw-r--r--tests/run.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run.py b/tests/run.py
index f4105fb41..d0239b2b1 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -39,7 +39,7 @@ import m5
m5.disableAllListeners()
# single "path" arg encodes everything we need to know about test
-(category, name, isa, opsys, config) = sys.argv[1].split('/')[-5:]
+(category, mode, name, isa, opsys, config) = sys.argv[1].split('/')[-6:]
# find path to directory containing this file
tests_root = os.path.dirname(__file__)
@@ -74,8 +74,8 @@ execfile(joinpath(tests_root, 'configs', test_filename + '.py'))
maxtick = m5.MaxTick
# tweak configuration for specific test
-sys.path.append(joinpath(tests_root, category, name))
-execfile(joinpath(tests_root, category, name, 'test.py'))
+sys.path.append(joinpath(tests_root, category, mode, name))
+execfile(joinpath(tests_root, category, mode, name, 'test.py'))
# instantiate configuration
m5.instantiate()