changeset 40270:8783710b1d58

run-tests: restore quoting the python executable for running *.py tests This was accidentally dropped in 8cf459d8b111.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 13 Oct 2018 23:08:29 -0400
parents 52b773f5e9a4
children dbc28c91f7ff
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Oct 13 19:49:33 2018 -0400
+++ b/tests/run-tests.py	Sat Oct 13 23:08:29 2018 -0400
@@ -1219,7 +1219,8 @@
 
     def _run(self, env):
         py3switch = self._py3warnings and b' -3' or b''
-        cmd = b'%s%s "%s"' % (PYTHON, py3switch, self.path)
+        # Quote the python(3) executable for Windows
+        cmd = b'"%s"%s "%s"' % (PYTHON, py3switch, self.path)
         vlog("# Running", cmd)
         normalizenewlines = os.name == 'nt'
         result = self._runcommand(cmd, env,