# HG changeset patch # User Matt Mackall # Date 1370208171 18000 # Node ID 605be28ee4d0e0a94a417f08a946ea433c210266 # Parent 1168e50a48e504dced270c28bcc3efacc9e43c0d run-tests: move DAEMON_PIDS to env [ original upstream message ] diff -r 1168e50a48e5 -r 605be28ee4d0 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)"'