Mercurial > hg
comparison tests/run-tests.py @ 31635:632e07e72a22
runtests: unset editor and pager related environment variables
Those environment variables could affect some configuration and future
tests. Drop them to avoid issues.
author | Jun Wu <quark@fb.com> |
---|---|
date | Sun, 26 Mar 2017 20:58:54 -0700 |
parents | ac47df82bdba |
children | 6a2959acae1a |
comparison
equal
deleted
inserted
replaced
31634:35738db2037a | 31635:632e07e72a22 |
---|---|
904 env["EMAIL"] = "Foo Bar <foo.bar@example.com>" | 904 env["EMAIL"] = "Foo Bar <foo.bar@example.com>" |
905 env['COLUMNS'] = '80' | 905 env['COLUMNS'] = '80' |
906 env['TERM'] = 'xterm' | 906 env['TERM'] = 'xterm' |
907 | 907 |
908 for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' + | 908 for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' + |
909 'HGPLAIN HGPLAINEXCEPT ' + | 909 'HGPLAIN HGPLAINEXCEPT EDITOR VISUAL PAGER ' + |
910 'NO_PROXY CHGDEBUG').split(): | 910 'NO_PROXY CHGDEBUG').split(): |
911 if k in env: | 911 if k in env: |
912 del env[k] | 912 del env[k] |
913 | 913 |
914 # unset env related to hooks | 914 # unset env related to hooks |