summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Reinhardt <Steve.Reinhardt@amd.com>2010-01-29 20:29:14 -0800
committerSteve Reinhardt <Steve.Reinhardt@amd.com>2010-01-29 20:29:14 -0800
commit2f567f69cf5c6bee3ea8552ed83a17ac1a7eec83 (patch)
tree21c6bc5bc8998dbb5545dde9298498b4d33931c8
parent7f03dce012d53c08a129a6835b69b19d7cd2b340 (diff)
downloadgem5-2f567f69cf5c6bee3ea8552ed83a17ac1a7eec83.tar.xz
tests: added M5_TEST_PROGS environment variable
to allow override of global location for regression test binaries.
-rw-r--r--tests/run.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/run.py b/tests/run.py
index 7f70ac507..5e0b943c8 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -41,9 +41,8 @@ m5.disableAllListeners()
# find path to directory containing this file
tests_root = os.path.dirname(__file__)
-if os.path.isdir('/dist/m5/regression/test-progs'):
- test_progs = '/dist/m5/regression/test-progs'
-else:
+test_progs = os.environ.get('M5_TEST_PROGS', '/dist/m5/regression/test-progs')
+if not os.path.isdir(test_progs):
test_progs = joinpath(tests_root, 'test-progs')
# generate path to binary file