tests: decode bytes path to hg command before hitting with shellquote
authorAugie Fackler <augie@google.com>
Tue, 19 Sep 2017 00:08:12 -0400
changeset 34274 25fce08b36c8
parent 34273 cd2ee4db8f95
child 34275 278af5427773
tests: decode bytes path to hg command before hitting with shellquote
tests/run-tests.py
--- a/tests/run-tests.py	Tue Sep 19 00:07:51 2017 -0400
+++ b/tests/run-tests.py	Tue Sep 19 00:08:12 2017 -0400
@@ -2104,7 +2104,7 @@
                     opts = ''
                     withhg = self._runner.options.with_hg
                     if withhg:
-                        opts += ' --with-hg=%s ' % shellquote(withhg)
+                        opts += ' --with-hg=%s ' % shellquote(_strpath(withhg))
                     rtc = '%s %s %s %s' % (sys.executable, sys.argv[0], opts,
                                            test)
                     sub = subprocess.Popen(bisectcmd + ['--command', rtc],