# HG changeset patch # User Matt Mackall # Date 1370208171 18000 # Node ID 6a7c76395b4c3f91f2a91e5a247e800b919eee99 # Parent 7815917b5f2a746dec79278114e5431f6c6dbfac run-tests: move DAEMON_PIDS to env diff -r 7815917b5f2a -r 6a7c76395b4c tests/run-tests.py --- a/tests/run-tests.py Sun Jun 02 16:22:34 2013 -0500 +++ b/tests/run-tests.py Sun Jun 02 16:22:51 2013 -0500 @@ -352,7 +352,7 @@ hgrc.write('[extensions]\n') hgrc.write('inotify=\n') hgrc.write('[inotify]\n') - hgrc.write('pidfile=%s\n' % DAEMON_PIDS) + hgrc.write('pidfile=daemon.pids') hgrc.write('appendpid=True\n') if options.extra_config_opt: for opt in options.extra_config_opt: @@ -935,6 +935,7 @@ env["HGPORT"] = str(options.port) env["HGPORT1"] = str(options.port + 1) env["HGPORT2"] = str(options.port + 2) + env["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids') if options.time: starttime = time.time() @@ -1166,8 +1167,7 @@ break def runtests(options, tests): - global DAEMON_PIDS, HGRCPATH - DAEMON_PIDS = os.environ["DAEMON_PIDS"] = os.path.join(HGTMP, 'daemon.pids') + global HGRCPATH HGRCPATH = os.environ["HGRCPATH"] = os.path.join(HGTMP, '.hgrc') try: @@ -1300,7 +1300,6 @@ d = os.getenv('TMP') tmpdir = tempfile.mkdtemp('', 'hgtests.', d) HGTMP = os.environ['HGTMP'] = os.path.realpath(tmpdir) - DAEMON_PIDS = None HGRCPATH = None os.environ["HGEDITOR"] = sys.executable + ' -c "import sys; sys.exit(0)"'