[PATCH] tests: unset variable HG if it is set
Simon Heimberg
simohe at besonet.ch
Mon Sep 10 23:49:26 CDT 2012
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1343510897 -7200
# Node ID 3b2e4790264d0cb32f8a67632e003ff0089e84ec
# Parent 8fea378242e317d2311c86436ed45e95821513e4
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 -r 8fea378242e3 -r 3b2e4790264d tests/run-tests.py
--- a/tests/run-tests.py Son Sep 09 12:35:06 2012 +0200
+++ b/tests/run-tests.py Sam 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()
More information about the Mercurial-devel
mailing list