changeset 31048:23bcfdd76f96

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.
author Dr Rainer Woitok <rainer.woitok@gmail.com>
date Mon, 20 Feb 2017 18:27:29 +0100
parents 8aaebe8e47ec
children 20027be9f23d
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]