summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-23 04:43:00 (GMT)
committerWilliam Blevins <wblevins001@gmail.com>2016-09-23 04:43:00 (GMT)
commit2c18000b934722c69e23a2d0ad181767d5266ac9 (patch)
tree5e1e05b0b5b5bfe42d57614f635c199ff70d9dc6 /runtest.py
parent9128cb07092b16c4602b352544414a06a4ec641a (diff)
downloadSCons-2c18000b934722c69e23a2d0ad181767d5266ac9.zip
SCons-2c18000b934722c69e23a2d0ad181767d5266ac9.tar.gz
SCons-2c18000b934722c69e23a2d0ad181767d5266ac9.tar.bz2
Allowed for multiple fixture dirs and added default global directory.
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtest.py b/runtest.py
index 0950bbe..dec8f9f 100755
--- a/runtest.py
+++ b/runtest.py
@@ -786,10 +786,12 @@ def run_test(t, io_lock, async=True):
if not suppress_stdout and not suppress_stderr:
sys.stdout.write(header)
head, tail = os.path.split(t.abspath)
+ fixture_dirs = []
if head:
- os.environ['PYTHON_SCRIPT_DIR'] = head
- else:
- os.environ['PYTHON_SCRIPT_DIR'] = ''
+ fixture_dirs.append(head)
+ fixture_dirs.append(os.path.join(os.path.split(os.path.abspath(__file__))[0], 'fixture'))
+ os.environ['PYTHON_SCRIPT_DIR'] = ':'.join(fixture_dirs)
+
test_start_time = time_func()
if execute_tests:
t.execute()