# HG changeset patch # User Pierre-Yves David # Date 1627471093 -7200 # Node ID 036b9b3cc79a7f4d98cd9a9864faa33c9adf92a1 # Parent c405c089611a78109fcee88235ea08d45814997a run-tests: use a small timeout for chg instance There is case where the test runner fails to clean up the temporary files in that case, spawned chg instance can stay around for 1 hours. Getting them to shut down sooner cannot hurt. (We should also use a more robust approach for this cleanup) Differential Revision: https://phab.mercurial-scm.org/D11227 diff -r c405c089611a -r 036b9b3cc79a tests/run-tests.py --- a/tests/run-tests.py Wed Jul 28 14:56:10 2021 +0200 +++ b/tests/run-tests.py Wed Jul 28 13:18:13 2021 +0200 @@ -1546,6 +1546,8 @@ hgrc.write(b'mergemarkers = detailed\n') hgrc.write(b'promptecho = True\n') hgrc.write(b'timeout.warn=15\n') + hgrc.write(b'[chgserver]\n') + hgrc.write(b'idletimeout=60\n') hgrc.write(b'[defaults]\n') hgrc.write(b'[devel]\n') hgrc.write(b'all-warnings = true\n') diff -r c405c089611a -r 036b9b3cc79a tests/test-basic.t --- a/tests/test-basic.t Wed Jul 28 14:56:10 2021 +0200 +++ b/tests/test-basic.t Wed Jul 28 13:18:13 2021 +0200 @@ -2,6 +2,7 @@ #if no-extraextensions $ hg config + chgserver.idletimeout=60 devel.all-warnings=true devel.default-date=0 0 extensions.fsmonitor= (fsmonitor !) diff -r c405c089611a -r 036b9b3cc79a tests/test-commandserver.t --- a/tests/test-commandserver.t Wed Jul 28 14:56:10 2021 +0200 +++ b/tests/test-commandserver.t Wed Jul 28 13:18:13 2021 +0200 @@ -214,6 +214,7 @@ ... runcommand(server, [b'-R', b'foo', b'showconfig', b'ui', b'defaults']) *** runcommand showconfig bundle.mainreporoot=$TESTTMP/repo + chgserver.idletimeout=60 devel.all-warnings=true devel.default-date=0 0 extensions.fsmonitor= (fsmonitor !)