tests: make test suite more immune to environment variables
authorDr Rainer Woitok <rainer.woitok@gmail.com>
Mon, 20 Feb 2017 18:27:29 +0100
changeset 31048 23bcfdd76f96
parent 31047 8aaebe8e47ec
child 31049 20027be9f23d
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.
tests/run-tests.py
--- 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]