comparison tests/run-tests.py @ 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 01eebb65a61d
children ac47df82bdba
comparison
equal deleted inserted replaced
31047:8aaebe8e47ec 31048:23bcfdd76f96
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 'NO_PROXY CHGDEBUG').split(): 910 'NO_PROXY CHGDEBUG').split():
910 if k in env: 911 if k in env:
911 del env[k] 912 del env[k]
912 913
913 # unset env related to hooks 914 # unset env related to hooks