From 2c59c1be4ba3e0a7730b82cba798a886ed38381c Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Sat, 28 Jul 2012 23:28:17 +0200 Subject: [PATCH] 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. --- tests/run-tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run-tests.py b/tests/run-tests.py index c418f00383..d098aaa297 100755 --- 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()