##// END OF EJS Templates
run-tests: simplify env deletion
Matt Mackall -
r19271:08be9601 default
parent child Browse files
Show More
@@ -380,20 +380,15 b' def createenv(options, testtmp):'
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
General Comments 0
You need to be logged in to leave comments. Login now