Mercurial > hg
comparison tests/run-tests.py @ 34804:149109c96904
run-tests: set HGPLAIN=1 when bisecting
Otherwise a customized template may break the regex matching the bisect
output.
Differential Revision: https://phab.mercurial-scm.org/D949
author | Jun Wu <quark@fb.com> |
---|---|
date | Wed, 04 Oct 2017 18:51:21 -0700 |
parents | d817bf1fc675 |
children | 8bce3e51b101 |
comparison
equal
deleted
inserted
replaced
34803:d817bf1fc675 | 34804:149109c96904 |
---|---|
2102 bisectcmd = ['hg', 'bisect'] | 2102 bisectcmd = ['hg', 'bisect'] |
2103 bisectrepo = self._runner.options.bisect_repo | 2103 bisectrepo = self._runner.options.bisect_repo |
2104 if bisectrepo: | 2104 if bisectrepo: |
2105 bisectcmd.extend(['-R', os.path.abspath(bisectrepo)]) | 2105 bisectcmd.extend(['-R', os.path.abspath(bisectrepo)]) |
2106 def pread(args): | 2106 def pread(args): |
2107 env = os.environ.copy() | |
2108 env['HGPLAIN'] = '1' | |
2107 p = subprocess.Popen(args, stderr=subprocess.STDOUT, | 2109 p = subprocess.Popen(args, stderr=subprocess.STDOUT, |
2108 stdout=subprocess.PIPE) | 2110 stdout=subprocess.PIPE, env=env) |
2109 data = p.stdout.read() | 2111 data = p.stdout.read() |
2110 p.wait() | 2112 p.wait() |
2111 return data | 2113 return data |
2112 for test in tests: | 2114 for test in tests: |
2113 pread(bisectcmd + ['--reset']), | 2115 pread(bisectcmd + ['--reset']), |