changeset 19266:7815917b5f2a

run-tests: move HGPORT setting to env
author Matt Mackall <mpm@selenic.com>
date Sun, 02 Jun 2013 16:22:34 -0500
parents 644604f57e0f
children 6a7c76395b4c
files tests/run-tests.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Jun 02 15:33:41 2013 -0500
+++ b/tests/run-tests.py	Sun Jun 02 16:22:34 2013 -0500
@@ -932,6 +932,9 @@
     env = os.environ.copy()
     env['TESTTMP'] = testtmp
     env['HOME'] = testtmp
+    env["HGPORT"] = str(options.port)
+    env["HGPORT1"] = str(options.port + 1)
+    env["HGPORT2"] = str(options.port + 2)
 
     if options.time:
         starttime = time.time()
@@ -1305,9 +1308,6 @@
     os.environ["HGUSER"]   = "test"
     os.environ["HGENCODING"] = "ascii"
     os.environ["HGENCODINGMODE"] = "strict"
-    os.environ["HGPORT"] = str(options.port)
-    os.environ["HGPORT1"] = str(options.port + 1)
-    os.environ["HGPORT2"] = str(options.port + 2)
 
     if options.with_hg:
         INST = None