Patchwork D949: run-tests: set HGPLAIN=1 when bisecting

login
register
mail settings
Submitter phabricator
Date Oct. 17, 2017, 12:10 p.m.
Message ID <635172b3b36ddabce9b5668ff98ee8f9@localhost.localdomain>
Download mbox | patch
Permalink /patch/25087/
State Not Applicable
Headers show

Comments

phabricator - Oct. 17, 2017, 12:10 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG149109c96904: run-tests: set HGPLAIN=1 when bisecting (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D949?vs=2890&id=2901

REVISION DETAIL
  https://phab.mercurial-scm.org/D949

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: quark, #hg-reviewers, ryanmce
Cc: mercurial-devel

Patch

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