# HG changeset patch # User Matt Harbison # Date 1608576625 18000 # Node ID 7f8d0c2c369263e6310f07409b0cb9cb281c81aa # Parent baeb5e8d2612f4d9871bfe3c3236af9700071c54 run-tests: add a 4th `HGPORT` value I want to add tls1.3 support, and test-https.t already uses the existing ports to test tls1.0 through 1.2. It doesn't look to me like it can easily be converted to a bunch of #testcases, because this also tests downgrades to prior versions for the given client version. This partially reverts bc010fcd836b. diff -r baeb5e8d2612 -r 7f8d0c2c3692 tests/run-tests.py --- a/tests/run-tests.py Mon Nov 11 12:32:04 2024 -0500 +++ b/tests/run-tests.py Mon Dec 21 13:50:25 2020 -0500 @@ -1406,6 +1406,7 @@ self._portmap(0), self._portmap(1), self._portmap(2), + self._portmap(3), (br'([^0-9])%s' % re.escape(self._localip()), br'\1$LOCALIP'), (br'\bHG_TXNID=TXN:[a-f0-9]{40}\b', br'HG_TXNID=TXN:$ID$'), ] @@ -1509,7 +1510,7 @@ env['HGTEST_TIMEOUT_DEFAULT'] = formated_timeout env['HGTEST_TIMEOUT'] = _bytes2sys(b"%d" % self._timeout) # This number should match portneeded in _getport - for port in range(3): + for port in range(4): # This list should be parallel to _portmap in _getreplacements defineport(port) env["HGRCPATH"] = _bytes2sys(os.path.join(self._threadtmp, b'.hgrc')) @@ -3726,7 +3727,7 @@ def _getport(self, count): port = self._ports.get(count) # do we have a cached entry? if port is None: - portneeded = 3 + portneeded = 4 # above 100 tries we just give up and let test reports failure for tries in range(100): allfree = True