D949: run-tests: set HGPLAIN=1 when bisecting
quark (Jun Wu)
phabricator at mercurial-scm.org
Thu Oct 5 04:22:29 UTC 2017
quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Otherwise a customized template may break the regex matching the bisect
output.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D949
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2104,8 +2104,10 @@
if bisectrepo:
bisectcmd.extend(['-R', os.path.abspath(bisectrepo)])
def pread(args):
+ env = os.environ.copy()
+ env['HGPLAIN'] = '1'
p = subprocess.Popen(args, stderr=subprocess.STDOUT,
- stdout=subprocess.PIPE)
+ stdout=subprocess.PIPE, env=env)
data = p.stdout.read()
p.wait()
return data
To: quark, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list