diff --git a/test/MockToolset.py b/test/MockToolset.py index e95132e17d..c4af9650b6 100755 --- a/test/MockToolset.py +++ b/test/MockToolset.py @@ -195,7 +195,7 @@ def adjust_path(p): import common ; import type ; -.python-cmd = "\"%s\"" ; +.python-cmd = "%s" ; # Behave the same as gcc on Windows, because that's what # the test system expects @@ -206,7 +206,7 @@ def adjust_path(p): { local here = [ path.make [ modules.binding $(__name__) ] ] ; here = [ path.native [ path.root [ path.parent $(here) ] [ path.pwd ] ] ] ; - .config-cmd = [ common.variable-setting-command JAM_CWD : $(here) ] $(.python-cmd) -B ; + .config-cmd = [ common.variable-setting-command JAM_CWD : $(here) ] "\\"$(.python-cmd:J= )\\"" -B ; } feature.extend toolset : mock ; @@ -253,7 +253,7 @@ def adjust_path(p): $(.config-cmd) mock.py --dll "$(>)" -o "$(<)" $(USER_OPTIONS) -L"$(LINK_PATH)" --static-lib=$(FINDLIBS-STATIC) --shared-lib=$(FINDLIBS-SHARED) } -''' % sys.executable.replace('\\', '\\\\')) +''' % sys.executable.replace('\\', '/')) def set_expected(t, markup): verbose = "True" if t.verbose else "False" diff --git a/test/core_jamshell.py b/test/core_jamshell.py index e1c0722802..68a6551e7b 100644 --- a/test/core_jamshell.py +++ b/test/core_jamshell.py @@ -45,7 +45,7 @@ DEPENDS all : test-raw test-raw-fail test-py ; """) -t.run_build_system(["-ffile.jam", "-d1", "-sPYTHON=" + sys.executable], status=1) +t.run_build_system(["-ffile.jam", "-d1", '-sPYTHON="' + sys.executable + '"'], status=1) t.expect_output_lines([ "...failed run test-raw-fail...", "0,1,2", diff --git a/test/toolset-mock/project-config.jam b/test/toolset-mock/project-config.jam index 82802f143b..ded8d78bdb 100644 --- a/test/toolset-mock/project-config.jam +++ b/test/toolset-mock/project-config.jam @@ -33,6 +33,6 @@ using intel-darwin : 10.2 : $(PYTHON) $(here)/src/intel-darwin-10.2.py : $(ar) # TODO: msvc toolset should not require this env variable to be presented modules.poke .ENVIRON : PROCESSOR_ARCHITEW6432 : amd64 ; using msvc : 14.3 : : - "$(PYTHON) $(here)/src/msvc-14.3.py" - "$(PYTHON) $(here)/src/linkx.py" + \"$(PYTHON)\"\ \"$(here)/src/msvc-14.3.py\" + \"$(PYTHON)\"\ \"$(here)/src/linkx.py\" ;