comparison tests/run-tests.py @ 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 8cf459d8b111
children f8154ddaaed3 bb5d74a35477
comparison
equal deleted inserted replaced
40269:52b773f5e9a4 40270:8783710b1d58
1217 def refpath(self): 1217 def refpath(self):
1218 return os.path.join(self._testdir, b'%s.out' % self.bname) 1218 return os.path.join(self._testdir, b'%s.out' % self.bname)
1219 1219
1220 def _run(self, env): 1220 def _run(self, env):
1221 py3switch = self._py3warnings and b' -3' or b'' 1221 py3switch = self._py3warnings and b' -3' or b''
1222 cmd = b'%s%s "%s"' % (PYTHON, py3switch, self.path) 1222 # Quote the python(3) executable for Windows
1223 cmd = b'"%s"%s "%s"' % (PYTHON, py3switch, self.path)
1223 vlog("# Running", cmd) 1224 vlog("# Running", cmd)
1224 normalizenewlines = os.name == 'nt' 1225 normalizenewlines = os.name == 'nt'
1225 result = self._runcommand(cmd, env, 1226 result = self._runcommand(cmd, env,
1226 normalizenewlines=normalizenewlines) 1227 normalizenewlines=normalizenewlines)
1227 if self._aborted: 1228 if self._aborted: