diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-23 04:43:00 (GMT) |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-23 04:43:00 (GMT) |
commit | 2c18000b934722c69e23a2d0ad181767d5266ac9 (patch) | |
tree | 5e1e05b0b5b5bfe42d57614f635c199ff70d9dc6 /runtest.py | |
parent | 9128cb07092b16c4602b352544414a06a4ec641a (diff) | |
download | SCons-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-x | runtest.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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() |