comparison tests/test-http-proxy @ 7903:490e40816cbd

tests: strip o/s-dependent error messages from some http tests
author John Coomes <john.coomes@sun.com>
date Fri, 27 Feb 2009 17:28:26 -0800
parents 9105467b8167
children 3e6206967570
comparison
equal deleted inserted replaced
7902:afddc32b2b3f 7903:490e40816cbd
34 34
35 echo %% url with user name and password 35 echo %% url with user name and password
36 http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e 36 http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e
37 37
38 echo %% bad host:port for proxy 38 echo %% bad host:port for proxy
39 http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f 39 http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f 2>&1 | \
40 sed 's/error:.*/error:/'
40 41
41 echo %% do not use the proxy if it is in the no list 42 echo %% do not use the proxy if it is in the no list
42 http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g 43 http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g
43 44
44 cat proxy.log | sed -e 's/^.*\] /XXX /' -e 's/:[0-9][0-9]*/:/' 45 cat proxy.log | sed -e 's/^.*\] /XXX /' -e 's/:[0-9][0-9]*/:/'