# HG changeset patch # User timeless # Date 1455737924 0 # Node ID bc010fcd836bd892bf7c7bf39db7253ff114a11d # Parent 1b07331f59005739c17daa12661475c4f81be52e run-tests: stop allocating HGPORT3+HGPORT4 The only consumer was test-treemanifest.t, which has been fixed. In general, you should be able to use killdaemons.py to recycle ports instead of going over 3 ports (HGPORT, HGPORT1, HGPORT2). In the future, if you want to add a port, be sure to change portneeded in _getport. diff -r 1b07331f5900 -r bc010fcd836b tests/run-tests.py --- a/tests/run-tests.py Wed Feb 17 19:36:32 2016 +0000 +++ b/tests/run-tests.py Wed Feb 17 19:38:44 2016 +0000 @@ -736,8 +736,6 @@ self._portmap(0), self._portmap(1), self._portmap(2), - self._portmap(3), - self._portmap(4), (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', br'\1 (glob)'), ] @@ -764,9 +762,7 @@ env['TESTTMP'] = self._testtmp env['HOME'] = self._testtmp # This number should match portneeded in _getport - # XXX currently it does not, this is a bug that will be fixed - # in the next commit. - for port in xrange(5): + for port in xrange(3): # This list should be parallel to _portmap in _getreplacements defineport(port) env["HGRCPATH"] = os.path.join(self._threadtmp, b'.hgrc')