Mercurial > hg
comparison tests/run-tests.py @ 31008: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 |
comparison
equal
deleted
inserted
replaced
31007:bfdb0741f9f2 | 31008:636cf3f7620d |
---|---|
840 self._portmap(0), | 840 self._portmap(0), |
841 self._portmap(1), | 841 self._portmap(1), |
842 self._portmap(2), | 842 self._portmap(2), |
843 (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', | 843 (br'(?m)^(saved backup bundle to .*\.hg)( \(glob\))?$', |
844 br'\1 (glob)'), | 844 br'\1 (glob)'), |
845 (br'([^0-9])%s' % re.escape(self._localip()), br'\1$LOCALIP'), | |
845 ] | 846 ] |
846 r.append((self._escapepath(self._testtmp), b'$TESTTMP')) | 847 r.append((self._escapepath(self._testtmp), b'$TESTTMP')) |
847 | 848 |
848 return r | 849 return r |
849 | 850 |