Mercurial > hg
changeset 19272:16df87e25f41
run-tests: move more variables to env
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 02 Jun 2013 16:29:22 -0500 |
parents | 08be9601b464 |
children | f3effc499288 |
files | tests/run-tests.py |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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))