comparison tests/test-largefiles.t @ 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 6b0741d6d234
children 1b27e1793156
comparison
equal deleted inserted replaced
31007:bfdb0741f9f2 31008:636cf3f7620d
190 #if serve 190 #if serve
191 Test display of largefiles in hgweb 191 Test display of largefiles in hgweb
192 192
193 $ hg serve -d -p $HGPORT --pid-file ../hg.pid 193 $ hg serve -d -p $HGPORT --pid-file ../hg.pid
194 $ cat ../hg.pid >> $DAEMON_PIDS 194 $ cat ../hg.pid >> $DAEMON_PIDS
195 $ get-with-headers.py 127.0.0.1:$HGPORT 'file/tip/?style=raw' 195 $ get-with-headers.py $LOCALIP:$HGPORT 'file/tip/?style=raw'
196 200 Script output follows 196 200 Script output follows
197 197
198 198
199 drwxr-xr-x sub 199 drwxr-xr-x sub
200 -rw-r--r-- 41 large3 200 -rw-r--r-- 41 large3
201 -rw-r--r-- 9 normal3 201 -rw-r--r-- 9 normal3
202 202
203 203
204 $ get-with-headers.py 127.0.0.1:$HGPORT 'file/tip/sub/?style=raw' 204 $ get-with-headers.py $LOCALIP:$HGPORT 'file/tip/sub/?style=raw'
205 200 Script output follows 205 200 Script output follows
206 206
207 207
208 -rw-r--r-- 41 large4 208 -rw-r--r-- 41 large4
209 -rw-r--r-- 9 normal4 209 -rw-r--r-- 9 normal4