changeset 10902:4eb6311d217a stable

run-tests.py: reset env variables set by hooks
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 14 Apr 2010 09:08:47 +0200
parents 997173e49115
children cd21bf199d17 26d1d23e5a2b
files tests/run-tests.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: