[PATCH] runtests: unset editor and pager related environment variables

Augie Fackler raf at durin42.com
Mon Mar 27 09:11:35 EDT 2017


On Sun, Mar 26, 2017 at 08:59:52PM -0700, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1490587134 25200
> #      Sun Mar 26 20:58:54 2017 -0700
> # Node ID 65f76087bc84162bdf0735f156d403e873e5c4e8
> # Parent  e86eb75e74ce1b0803c26d86a229b9b711f6d76a
> # Available At https://bitbucket.org/quark-zju/hg-draft
> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r 65f76087bc84
> runtests: unset editor and pager related environment variables

Sure, queued. Thanks.

>
> Those environment variables could affect some configuration and future
> tests. Drop them to avoid issues.
>
> diff --git a/tests/run-tests.py b/tests/run-tests.py
> --- a/tests/run-tests.py
> +++ b/tests/run-tests.py
> @@ -907,5 +907,5 @@ class Test(unittest.TestCase):
>
>          for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' +
> -                  'HGPLAIN HGPLAINEXCEPT ' +
> +                  'HGPLAIN HGPLAINEXCEPT EDITOR VISUAL PAGER ' +
>                    'NO_PROXY CHGDEBUG').split():
>              if k in env:
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list