tests/run-tests.py
branchstable
changeset 724 211fa4b9803d
parent 722 85da4926cf39
child 725 212432db2043
equal deleted inserted replaced
722:85da4926cf39 724:211fa4b9803d
   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