projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f03dce
)
tests: added M5_TEST_PROGS environment variable
author
Steve Reinhardt
<Steve.Reinhardt@amd.com>
Sat, 30 Jan 2010 04:29:14 +0000
(20:29 -0800)
committer
Steve Reinhardt
<Steve.Reinhardt@amd.com>
Sat, 30 Jan 2010 04:29:14 +0000
(20:29 -0800)
to allow override of global location for regression test binaries.
tests/run.py
patch
|
blob
|
history
diff --git
a/tests/run.py
b/tests/run.py
index 7f70ac50782a76ae3ed0686b4e3e3df319100760..5e0b943c8dffe38de1f37203bbf83b50976ee29b 100644
(file)
--- 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