Mercurial > hg
comparison tests/run-tests.py @ 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 |
comparison
equal
deleted
inserted
replaced
34266:cd2ee4db8f95 | 34267:25fce08b36c8 |
---|---|
2102 # TODO: we probably need to forward more options | 2102 # TODO: we probably need to forward more options |
2103 # that alter hg's behavior inside the tests. | 2103 # that alter hg's behavior inside the tests. |
2104 opts = '' | 2104 opts = '' |
2105 withhg = self._runner.options.with_hg | 2105 withhg = self._runner.options.with_hg |
2106 if withhg: | 2106 if withhg: |
2107 opts += ' --with-hg=%s ' % shellquote(withhg) | 2107 opts += ' --with-hg=%s ' % shellquote(_strpath(withhg)) |
2108 rtc = '%s %s %s %s' % (sys.executable, sys.argv[0], opts, | 2108 rtc = '%s %s %s %s' % (sys.executable, sys.argv[0], opts, |
2109 test) | 2109 test) |
2110 sub = subprocess.Popen(bisectcmd + ['--command', rtc], | 2110 sub = subprocess.Popen(bisectcmd + ['--command', rtc], |
2111 stderr=subprocess.STDOUT, | 2111 stderr=subprocess.STDOUT, |
2112 stdout=subprocess.PIPE) | 2112 stdout=subprocess.PIPE) |