tests: make test suite more immune to environment variables
Plenty of tests break when "make tests" is run while environment
variables "HGPLAIN" or "HGPLAINEXCEPT" are set (test "test-obsolete-
checkheads.t" is just a single example).
This patch causes script "run-tests.py" to also remove these two
variables from the environment the tests are executed in.
--- a/tests/run-tests.py Mon Feb 06 23:08:49 2017 -0500
+++ b/tests/run-tests.py Mon Feb 20 18:27:29 2017 +0100
@@ -906,6 +906,7 @@
env['TERM'] = 'xterm'
for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' +
+ 'HGPLAIN HGPLAINEXCEPT ' +
'NO_PROXY CHGDEBUG').split():
if k in env:
del env[k]