Re: [PATCH] run-tests: restore quoting the python executable for running *.py tests

2018-10-13 Thread Yuya Nishihara
On Sat, 13 Oct 2018 23:10:49 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison 
> # Date 1539486509 14400
> #  Sat Oct 13 23:08:29 2018 -0400
> # Node ID b94bd76195a7474b2493b362f47550b179d79aa3
> # Parent  fb97b23d9256601538396ea49c8284219992fe99
> run-tests: restore quoting the python executable for running *.py tests

Queued, thanks.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH] run-tests: restore quoting the python executable for running *.py tests

2018-10-13 Thread Matt Harbison
# HG changeset patch
# User Matt Harbison 
# Date 1539486509 14400
#  Sat Oct 13 23:08:29 2018 -0400
# Node ID b94bd76195a7474b2493b362f47550b179d79aa3
# Parent  fb97b23d9256601538396ea49c8284219992fe99
run-tests: restore quoting the python executable for running *.py tests

This was accidentally dropped in 8cf459d8b111.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1219,7 +1219,8 @@ class PythonTest(Test):
 
 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,
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel