summaryrefslogtreecommitdiffstats
path: root/runtest.py
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@genarts.com>2018-01-05 19:03:31 (GMT)
committerGary Oberbrunner <garyo@genarts.com>2018-01-05 19:12:39 (GMT)
commit25887d95760e9e4ac65f8bbde3a99a0b3a1d471a (patch)
treed1ac77219834117edd2bfd6d7c05fdecfd2269c6 /runtest.py
parent91d11918ad131c816dd481b82ca90b6aa15dc56b (diff)
downloadSCons-25887d95760e9e4ac65f8bbde3a99a0b3a1d471a.zip
SCons-25887d95760e9e4ac65f8bbde3a99a0b3a1d471a.tar.gz
SCons-25887d95760e9e4ac65f8bbde3a99a0b3a1d471a.tar.bz2
Fix problem with Install and multiple dirs outside src tree.
In some cases it's possible to get a case where the target path already does exist, but the dir node for it hasn't been updated yet. This fix prevents MkdirFunc from trying to create it when it already exists. Added a testcase which failed before the fix and works after it. Also fixes a problem running tests on Windows, using standard python 3 which is installed in "C:/Program Files/Python36". The python path name has to be escaped in that case. See runtest.py.
Diffstat (limited to 'runtest.py')
-rwxr-xr-xruntest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtest.py b/runtest.py
index f053f5f..cf8925c 100755
--- a/runtest.py
+++ b/runtest.py
@@ -799,7 +799,7 @@ def run_test(t, io_lock, async=True):
if options.runner and t.path in unittests:
# For example --runner TestUnit.TAPTestRunner
command_args.append('--runner ' + options.runner)
- t.command_args = [python] + command_args
+ t.command_args = [escape(python)] + command_args
t.command_str = " ".join([escape(python)] + command_args)
if printcommand:
if print_progress: