run-tests: move more variables to env
authorMatt Mackall <mpm@selenic.com>
Sun, 02 Jun 2013 16:29:22 -0500
changeset 19272 16df87e25f41
parent 19271 08be9601b464
child 19273 f3effc499288
run-tests: move more variables to env
tests/run-tests.py
--- a/tests/run-tests.py	Sun Jun 02 16:29:20 2013 -0500
+++ b/tests/run-tests.py	Sun Jun 02 16:29:22 2013 -0500
@@ -371,6 +371,11 @@
     env["HGPORT2"] = str(options.port + 2)
     env["HGRCPATH"] = os.path.join(HGTMP, '.hgrc')
     env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids')
+    env["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
+    env["HGMERGE"] = "internal:merge"
+    env["HGUSER"]   = "test"
+    env["HGENCODING"] = "ascii"
+    env["HGENCODINGMODE"] = "strict"
 
     # Reset some environment variables to well-known values so that
     # the tests produce repeatable output.
@@ -1294,12 +1299,6 @@
         tmpdir = tempfile.mkdtemp('', 'hgtests.', d)
     HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir)
 
-    os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'
-    os.environ["HGMERGE"] = "internal:merge"
-    os.environ["HGUSER"]   = "test"
-    os.environ["HGENCODING"] = "ascii"
-    os.environ["HGENCODINGMODE"] = "strict"
-
     if options.with_hg:
         INST = None
         BINDIR = os.path.dirname(os.path.realpath(options.with_hg))