Mercurial > hg
changeset 47776:036b9b3cc79a stable
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 28 Jul 2021 13:18:13 +0200 |
parents | c405c089611a |
children | 1a174f122814 |
files | tests/run-tests.py tests/test-basic.t tests/test-commandserver.t |
diffstat | 3 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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')
--- 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 !)
--- 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 !)