tests/run-tests.py
branchstable
changeset 1249 d402cca6f9b1
parent 1248 44c6de7459a7
child 1250 d0b3f7f38c72
equal deleted inserted replaced
1248:44c6de7459a7 1249:d402cca6f9b1
   378     env['TZ'] = 'GMT'
   378     env['TZ'] = 'GMT'
   379     env["EMAIL"] = "Foo Bar <foo.bar@example.com>"
   379     env["EMAIL"] = "Foo Bar <foo.bar@example.com>"
   380     env['COLUMNS'] = '80'
   380     env['COLUMNS'] = '80'
   381     env['TERM'] = 'xterm'
   381     env['TERM'] = 'xterm'
   382 
   382 
   383     env['CDPATH'] = ''
   383     for k in ('HG HGPROF CDPATH GREP_OPTIONS http_proxy no_proxy ' +
   384     env['GREP_OPTIONS'] = ''
   384               'NO_PROXY').split():
   385     env['http_proxy'] = ''
   385         if k in env:
   386     env['no_proxy'] = ''
   386             del env[k]
   387     env['NO_PROXY'] = ''
       
   388 
   387 
   389     # unset env related to hooks
   388     # unset env related to hooks
   390     for k in env.keys():
   389     for k in env.keys():
   391         if k.startswith('HG_'):
   390         if k.startswith('HG_'):
   392             del env[k]
   391             del env[k]
   393     if 'HG' in env:
       
   394         del env['HG']
       
   395     if 'HGPROF' in env:
       
   396         del env['HGPROF']
       
   397 
   392 
   398     return env
   393     return env
   399 
   394 
   400 def checktools():
   395 def checktools():
   401     # Before we go any further, check for pre-requisite tools
   396     # Before we go any further, check for pre-requisite tools