tests: unset variable HG if it is set stable
authorSimon Heimberg <simohe@besonet.ch>
Sat, 28 Jul 2012 23:28:17 +0200
branchstable
changeset 1131 1938c2ebf517
parent 1129 b90bb2b0826a
child 1132 13a3f6161af8
child 1133 82f74372516e
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. [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Fri Aug 17 13:58:18 2012 -0700
+++ b/tests/run-tests.py	Sat Jul 28 23:28:17 2012 +0200
@@ -1211,6 +1211,10 @@
             # 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()