test-http-proxy: hide logged URL port number, works with--jobs
authorPatrick Mezard <pmezard@gmail.com>
Mon, 27 Oct 2008 23:47:17 +0100
changeset 7268 e05092a3c2fe
parent 7267 6a51ca1e05c3
child 7272 9105467b8167
test-http-proxy: hide logged URL port number, works with--jobs
tests/test-http-proxy
tests/test-http-proxy.out
--- a/tests/test-http-proxy	Mon Oct 27 22:57:55 2008 +0100
+++ b/tests/test-http-proxy	Mon Oct 27 23:47:17 2008 +0100
@@ -38,5 +38,5 @@
 echo %% bad host:port for proxy
 http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f
 
-cat proxy.log | sed -e 's/^.*\] /XXX /'
+cat proxy.log | sed -e 's/^.*\] /XXX /' -e 's/:[0-9][0-9]*/:/'
 exit 0
--- a/tests/test-http-proxy.out	Mon Oct 27 22:57:55 2008 +0100
+++ b/tests/test-http-proxy.out	Mon Oct 27 23:47:17 2008 +0100
@@ -49,18 +49,18 @@
 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
 %% bad host:port for proxy
 abort: error: Connection refused
-XXX "GET http://localhost:20059/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=capabilities HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=stream_out HTTP/1.1" - -
-XXX "GET http://localhost:20059/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=heads HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
-XXX "GET http://localhost:20059/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=heads HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
-XXX "GET http://localhost:20059/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=heads HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
-XXX "GET http://localhost:20059/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=heads HTTP/1.1" - -
-XXX "GET http://localhost:20059/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
+XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=stream_out HTTP/1.1" - -
+XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
+XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
+XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -
+XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - -
+XXX "GET http://localhost:/?cmd=changegroup&roots=0000000000000000000000000000000000000000 HTTP/1.1" - -