Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 14 Apr 2010 15:23:22 +0200
changeset 727 1b9ed0c8a189
parent 723 1c69e8924c9c (current diff)
parent 726 f7050b041b5f (diff)
child 729 e61c92cf8a08
Merge with stable
--- a/tests/run-tests.py	Tue Apr 13 10:28:48 2010 +0200
+++ b/tests/run-tests.py	Wed Apr 14 15:23:22 2010 +0200
@@ -46,9 +46,8 @@
 import errno
 import optparse
 import os
-import signal
+import shutil
 import subprocess
-import shutil
 import signal
 import sys
 import tempfile
@@ -664,6 +663,7 @@
 
     optcopy = dict(options.__dict__)
     optcopy['jobs'] = 1
+    del optcopy['blacklist']
     if optcopy['with_hg'] is None:
         optcopy['with_hg'] = os.path.join(BINDIR, "hg")
     optcopy.pop('anycoverage', None)
@@ -852,6 +852,11 @@
     os.environ['GREP_OPTIONS'] = ''
     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: