tests/run-tests.py
changeset 727 1b9ed0c8a189
parent 726 f7050b041b5f
child 728 5df6643c39e9
equal deleted inserted replaced
723:1c69e8924c9c 727:1b9ed0c8a189
    44 from distutils import version
    44 from distutils import version
    45 import difflib
    45 import difflib
    46 import errno
    46 import errno
    47 import optparse
    47 import optparse
    48 import os
    48 import os
    49 import signal
    49 import shutil
    50 import subprocess
    50 import subprocess
    51 import shutil
       
    52 import signal
    51 import signal
    53 import sys
    52 import sys
    54 import tempfile
    53 import tempfile
    55 import time
    54 import time
    56 
    55 
   662         installhg(options)
   661         installhg(options)
   663         _checkhglib("Testing")
   662         _checkhglib("Testing")
   664 
   663 
   665     optcopy = dict(options.__dict__)
   664     optcopy = dict(options.__dict__)
   666     optcopy['jobs'] = 1
   665     optcopy['jobs'] = 1
       
   666     del optcopy['blacklist']
   667     if optcopy['with_hg'] is None:
   667     if optcopy['with_hg'] is None:
   668         optcopy['with_hg'] = os.path.join(BINDIR, "hg")
   668         optcopy['with_hg'] = os.path.join(BINDIR, "hg")
   669     optcopy.pop('anycoverage', None)
   669     optcopy.pop('anycoverage', None)
   670 
   670 
   671     opts = []
   671     opts = []
   850     os.environ['CDPATH'] = ''
   850     os.environ['CDPATH'] = ''
   851     os.environ['COLUMNS'] = '80'
   851     os.environ['COLUMNS'] = '80'
   852     os.environ['GREP_OPTIONS'] = ''
   852     os.environ['GREP_OPTIONS'] = ''
   853     os.environ['http_proxy'] = ''
   853     os.environ['http_proxy'] = ''
   854 
   854 
       
   855     # unset env related to hooks
       
   856     for k in os.environ.keys():
       
   857         if k.startswith('HG_'):
       
   858             del os.environ[k]
       
   859 
   855     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
   860     global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE
   856     TESTDIR = os.environ["TESTDIR"] = os.getcwd()
   861     TESTDIR = os.environ["TESTDIR"] = os.getcwd()
   857     if options.tmpdir:
   862     if options.tmpdir:
   858         options.keep_tmpdir = True
   863         options.keep_tmpdir = True
   859         tmpdir = options.tmpdir
   864         tmpdir = options.tmpdir