changeset 34267:25fce08b36c8

tests: decode bytes path to hg command before hitting with shellquote
author Augie Fackler <augie@google.com>
date Tue, 19 Sep 2017 00:08:12 -0400
parents cd2ee4db8f95
children 278af5427773
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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],