tests/run-tests.py
changeset 1213 1a87bd40517c
parent 1212 2ea362720f72
child 1215 62ff53b05730
equal deleted inserted replaced
1211:fa2a1c11ae4b 1213:1a87bd40517c
    50 import subprocess
    50 import subprocess
    51 import signal
    51 import signal
    52 import sys
    52 import sys
    53 import tempfile
    53 import tempfile
    54 import time
    54 import time
       
    55 import random
    55 import re
    56 import re
    56 import threading
    57 import threading
    57 import killdaemons as killmod
    58 import killdaemons as killmod
    58 import cPickle as pickle
    59 import cPickle as pickle
    59 import Queue as queue
    60 import Queue as queue
  1251     os.environ['GREP_OPTIONS'] = ''
  1252     os.environ['GREP_OPTIONS'] = ''
  1252     os.environ['http_proxy'] = ''
  1253     os.environ['http_proxy'] = ''
  1253     os.environ['no_proxy'] = ''
  1254     os.environ['no_proxy'] = ''
  1254     os.environ['NO_PROXY'] = ''
  1255     os.environ['NO_PROXY'] = ''
  1255     os.environ['TERM'] = 'xterm'
  1256     os.environ['TERM'] = 'xterm'
  1256     os.environ['PYTHONHASHSEED'] = os.environ.get('PYTHONHASHSEED', 'random')
  1257     if 'PYTHONHASHSEED' not in os.environ:
       
  1258         # use a random python hash seed all the time
       
  1259         # we do the randomness ourself to know what seed is used
       
  1260         os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32))
       
  1261         print 'python hash seed:', os.environ['PYTHONHASHSEED']
  1257 
  1262 
  1258     # unset env related to hooks
  1263     # unset env related to hooks
  1259     for k in os.environ.keys():
  1264     for k in os.environ.keys():
  1260         if k.startswith('HG_'):
  1265         if k.startswith('HG_'):
  1261             # can't remove on solaris
  1266             # can't remove on solaris