summaryrefslogtreecommitdiff
path: root/runtest.py
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-23 00:43:00 -0400
committerWilliam Blevins <wblevins001@gmail.com>2016-09-23 00:43:00 -0400
commiteb8a1e84f775e6fa46f71ec17a33ac51b35f94da (patch)
tree5e1e05b0b5b5bfe42d57614f635c199ff70d9dc6 /runtest.py
parent332cc0180e1ef06142b898b881ee69c1259397d5 (diff)
downloadscons-eb8a1e84f775e6fa46f71ec17a33ac51b35f94da.tar.gz
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 0950bbe7..dec8f9f6 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()