##// END OF EJS Templates
tests: strip o/s-dependent error messages from some http tests
John Coomes -
r7903:490e4081 default
parent child Browse files
Show More
@@ -1,7 +1,7 b''
1 1 #!/bin/sh
2 2
3 hg clone http://localhost:$HGPORT/ copy
4 echo $?
3 { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \
4 sed 's/error:.*/error:/'
5 5 test -d copy || echo copy: No such file or directory
6 6
7 7 cat > dumb.py <<EOF
@@ -23,8 +23,7 b' echo $! >> $DAEMON_PIDS'
23 23 # give the server some time to start running
24 24 sleep 1
25 25
26 http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \
26 { http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1; echo $?; } | \
27 27 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/'
28 echo $?
29 28
30 29 kill $!
@@ -1,5 +1,5 b''
1 abort: error: Connection refused
1 abort: error:
2 2 255
3 3 copy: No such file or directory
4 4 abort: HTTP Error 404
5 0
5 255
@@ -36,7 +36,8 b' echo %% url with user name and password'
36 36 http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e
37 37
38 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 42 echo %% do not use the proxy if it is in the no list
42 43 http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g
@@ -48,7 +48,7 b' added 1 changesets with 1 changes to 1 f'
48 48 updating working directory
49 49 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 50 %% bad host:port for proxy
51 abort: error: Connection refused
51 abort: error:
52 52 %% do not use the proxy if it is in the no list
53 53 requesting all changes
54 54 adding changesets
@@ -2,8 +2,8 b''
2 2
3 3 cp "$TESTDIR"/printenv.py .
4 4
5 http_proxy= hg clone http://localhost:$HGPORT/ copy
6 echo $?
5 { http_proxy= hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \
6 sed 's/error:.*/error:/'
7 7 test -d copy || echo copy: No such file or directory
8 8
9 9 # This server doesn't do range requests so it's basically only good for
@@ -1,4 +1,4 b''
1 abort: error: Connection refused
1 abort: error:
2 2 255
3 3 copy: No such file or directory
4 4 changeset: 0:53e17d176ae6
General Comments 0
You need to be logged in to leave comments. Login now