run-tests.py: reset env variables set by hooks stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 14 Apr 2010 09:08:47 +0200
branchstable
changeset 10902 4eb6311d217a
parent 10901 997173e49115
child 10903 cd21bf199d17
child 10904 26d1d23e5a2b
run-tests.py: reset env variables set by hooks
tests/run-tests.py
--- a/tests/run-tests.py	Wed Apr 14 08:48:26 2010 +0200
+++ b/tests/run-tests.py	Wed Apr 14 09:08:47 2010 +0200
@@ -844,6 +844,11 @@
     os.environ['COLUMNS'] = '80'
     os.environ['http_proxy'] = ''
 
+    # unset env related to hooks
+    for k in os.environ.keys():
+        if k.startswith('HG_'):
+            del os.environ[k]
+
     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
     TESTDIR = os.environ["TESTDIR"] = os.getcwd()
     if options.tmpdir: