# HG changeset patch # User Benoit Boissinot # Date 1271228927 -7200 # Node ID 4eb6311d217a9ce29acc05bef43cf5389f280418 # Parent 997173e4911554be91bafc3b9b5cdff51308a1bd run-tests.py: reset env variables set by hooks diff -r 997173e49115 -r 4eb6311d217a 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: