Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 47950:a28a7dcb9158
tests: setup dummyssh as the default ssh
To significantly reduce boilerplate in tests. One test is updated to
show that it works, I expect to do the rest in follow up commits.
Differential Revision: https://phab.mercurial-scm.org/D11244
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Mon, 02 Aug 2021 21:10:42 -0400 |
parents | d3f890e04525 |
children | 96aa3a68d3b5 |
line wrap: on
line diff
--- a/tests/run-tests.py Tue Aug 24 21:25:35 2021 +0200 +++ b/tests/run-tests.py Mon Aug 02 21:10:42 2021 -0400 @@ -1554,6 +1554,8 @@ hgrc.write(b'merge = internal:merge\n') hgrc.write(b'mergemarkers = detailed\n') hgrc.write(b'promptecho = True\n') + dummyssh = os.path.join(self._testdir, b'dummyssh') + hgrc.write(b'ssh = "%s" "%s"\n' % (PYTHON, dummyssh)) hgrc.write(b'timeout.warn=15\n') hgrc.write(b'[chgserver]\n') hgrc.write(b'idletimeout=60\n')