tests/run-tests.py
branchstable
changeset 1250 d0b3f7f38c72
parent 1249 d402cca6f9b1
child 1251 5dfbf34da361
equal deleted inserted replaced
1249:d402cca6f9b1 1250:d0b3f7f38c72
   369     env["HGPORT"] = str(options.port)
   369     env["HGPORT"] = str(options.port)
   370     env["HGPORT1"] = str(options.port + 1)
   370     env["HGPORT1"] = str(options.port + 1)
   371     env["HGPORT2"] = str(options.port + 2)
   371     env["HGPORT2"] = str(options.port + 2)
   372     env["HGRCPATH"] = os.path.join(HGTMP, '.hgrc')
   372     env["HGRCPATH"] = os.path.join(HGTMP, '.hgrc')
   373     env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
   373     env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
       
   374     env["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
       
   375     env["HGMERGE"] = "internal:merge"
       
   376     env["HGUSER"]   = "test"
       
   377     env["HGENCODING"] = "ascii"
       
   378     env["HGENCODINGMODE"] = "strict"
   374 
   379 
   375     # Reset some environment variables to well-known values so that
   380     # Reset some environment variables to well-known values so that
   376     # the tests produce repeatable output.
   381     # the tests produce repeatable output.
   377     env['LANG'] = env['LC_ALL'] = env['LANGUAGE'] = 'C'
   382     env['LANG'] = env['LC_ALL'] = env['LANGUAGE'] = 'C'
   378     env['TZ'] = 'GMT'
   383     env['TZ'] = 'GMT'
  1292             # in all lowercase, which causes troubles with paths (issue3490)
  1297             # in all lowercase, which causes troubles with paths (issue3490)
  1293             d = os.getenv('TMP')
  1298             d = os.getenv('TMP')
  1294         tmpdir = tempfile.mkdtemp('', 'hgtests.', d)
  1299         tmpdir = tempfile.mkdtemp('', 'hgtests.', d)
  1295     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
  1300     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
  1296 
  1301 
  1297     os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
       
  1298     os.environ["HGMERGE"] = "internal:merge"
       
  1299     os.environ["HGUSER"]   = "test"
       
  1300     os.environ["HGENCODING"] = "ascii"
       
  1301     os.environ["HGENCODINGMODE"] = "strict"
       
  1302 
       
  1303     if options.with_hg:
  1302     if options.with_hg:
  1304         INST = None
  1303         INST = None
  1305         BINDIR = os.path.dirname(os.path.realpath(options.with_hg))
  1304         BINDIR = os.path.dirname(os.path.realpath(options.with_hg))
  1306 
  1305 
  1307         # This looks redundant with how Python initializes sys.path from
  1306         # This looks redundant with how Python initializes sys.path from