summaryrefslogtreecommitdiff
path: root/tests/configs/learning-gem5-p1-two-level.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/configs/learning-gem5-p1-two-level.py')
-rw-r--r--tests/configs/learning-gem5-p1-two-level.py24
1 files changed, 1 insertions, 23 deletions
diff --git a/tests/configs/learning-gem5-p1-two-level.py b/tests/configs/learning-gem5-p1-two-level.py
index c0a1e4662..0c355e838 100644
--- a/tests/configs/learning-gem5-p1-two-level.py
+++ b/tests/configs/learning-gem5-p1-two-level.py
@@ -32,27 +32,5 @@
# For some reason, this is implicitly needed by run.py
root = None
-import m5
-
def run_test(root):
- # Called from tests/run.py
-
-
- # Set the working directory in case we are executing from
- # outside gem5's source tree
- import os
- os.chdir(os.path.join(os.path.dirname(__file__), "../"))
-
- # Add paths that we need
- m5.util.addToPath('../configs/learning_gem5/part1')
- m5.util.addToPath('../configs/')
-
- # The path to this script is the only parameter. Delete it so we can
- # execute the script that we want to execute.
- import sys
- del sys.argv[1:]
- # Note: at this point, we could add options we want to test.
- # For instance, sys.argv.append('--l2_size=512kB')
-
- # Execute the script we are wrapping
- execfile(srcpath('configs/learning_gem5/part1/two_level.py'))
+ run_config('configs/learning_gem5/part1/two_level.py')