# HG changeset patch # User Matt Harbison # Date 1537501530 14400 # Node ID 38d51371792b27c180c2aa389d43976282dc1f7e # Parent 7303ab86431a09f85f19606f932a645f6999ec24 run-tests: partially backout PYTHON quoting In 7f8b7a060584, I quoted this to support python being installed to "Program Files". Even though the string passed to os.popen() is this: "c:/Python27/python.exe" -c "import mercurial; print (mercurial.__path__[0])" ... cmd.exe is trying to run this: 'c:/Python27/python.exe" -c "import' This caused test-hghave.t to fail, reporting 'unexpected mercurial lib: ""', because the failed execution prints nothing to stdout. Py3 fails as though it's not quoted. For whatever reason, print() shows up in the output when run with py2, but not py3, so I'm having a hard time debugging this. For now, let's fix the buildbot. diff -r 7303ab86431a -r 38d51371792b tests/run-tests.py --- a/tests/run-tests.py Fri Sep 21 03:16:08 2018 +0530 +++ b/tests/run-tests.py Thu Sep 20 23:45:30 2018 -0400 @@ -3082,7 +3082,7 @@ if self._hgpath is not None: return self._hgpath - cmd = b'"%s" -c "import mercurial; print (mercurial.__path__[0])"' + cmd = b'%s -c "import mercurial; print (mercurial.__path__[0])"' cmd = cmd % PYTHON if PYTHON3: cmd = _strpath(cmd)