Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 31028:636cf3f7620d
tests: use LOCALIP
This patch replaces hardcoded 127.0.0.1 with $LOCALIP in all tests.
Till now, the IPv6 series should make tests pass on common IPv6 systems
where the local device has the address "::1" and the hostname "localhost"
resolves to "::1".
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 16 Feb 2017 09:38:52 -0800 |
parents | d4916aebf3d0 |
children | 161ab32b44a1 |
line wrap: on
line diff
--- a/tests/run-tests.py Wed Feb 15 23:24:03 2017 -0800 +++ b/tests/run-tests.py Thu Feb 16 09:38:52 2017 -0800 @@ -842,6 +842,7 @@ self._portmap(2), (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', br'\1 (glob)'), + (br'([^0-9])%s' % re.escape(self._localip()), br'\1$LOCALIP'), ] r.append((self._escapepath(self._testtmp), b'$TESTTMP'))