Mercurial > hg
changeset 17541:3e3dfa7e6864
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.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Sat, 28 Jul 2012 23:28:17 +0200 |
parents | f2bcc5975f10 |
children | fc1a5d0eb3bb |
files | tests/run-tests.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Thu Sep 13 17:46:34 2012 +0200 +++ 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()