tests: added M5_TEST_PROGS environment variable

to allow override of global location for regression test binaries.
This commit is contained in:
Steve Reinhardt
2010-01-29 20:29:14 -08:00
parent 7f03dce012
commit 2f567f69cf

View File

@@ -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