# HG changeset patch # User Simon Heimberg # Date 2012-07-28 21:28:17 # Node ID 3e3dfa7e68645962f9dc1be543c5de5b3c6d2eb4 # Parent f2bcc5975f108027629ac6d8179d0e4a1cb74ad8 tests: unset variable HG if it is set When hg tries to call itself it can call a different hg executable when this variable is set. Some tests fail when the called hg version is different. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1211,6 +1211,10 @@ def main(): # can't remove on solaris os.environ[k] = '' del os.environ[k] + if 'HG' in os.environ: + # can't remove on solaris + os.environ['HG'] = '' + del os.environ['HG'] global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE TESTDIR = os.environ["TESTDIR"] = os.getcwd()