diff options
author | William Blevins <wblevins001@gmail.com> | 2016-09-23 00:43:00 -0400 |
---|---|---|
committer | William Blevins <wblevins001@gmail.com> | 2016-09-23 00:43:00 -0400 |
commit | eb8a1e84f775e6fa46f71ec17a33ac51b35f94da (patch) | |
tree | 5e1e05b0b5b5bfe42d57614f635c199ff70d9dc6 /runtest.py | |
parent | 332cc0180e1ef06142b898b881ee69c1259397d5 (diff) | |
download | scons-eb8a1e84f775e6fa46f71ec17a33ac51b35f94da.tar.gz |
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() |