Show More
@@ -1,7 +1,7 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg clone http://localhost:$HGPORT/ copy |
|
3 | { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ | |
4 | echo $? |
|
4 | sed 's/error:.*/error:/' | |
5 | test -d copy || echo copy: No such file or directory |
|
5 | test -d copy || echo copy: No such file or directory | |
6 |
|
6 | |||
7 | cat > dumb.py <<EOF |
|
7 | cat > dumb.py <<EOF | |
@@ -23,8 +23,7 b' echo $! >> $DAEMON_PIDS' | |||||
23 | # give the server some time to start running |
|
23 | # give the server some time to start running | |
24 | sleep 1 |
|
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 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' |
|
27 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' | |
28 | echo $? |
|
|||
29 |
|
28 | |||
30 | kill $! |
|
29 | kill $! |
@@ -1,5 +1,5 b'' | |||||
1 | abort: error: Connection refused |
|
1 | abort: error: | |
2 | 255 |
|
2 | 255 | |
3 | copy: No such file or directory |
|
3 | copy: No such file or directory | |
4 | abort: HTTP Error 404 |
|
4 | abort: HTTP Error 404 | |
5 | 0 |
|
5 | 255 |
@@ -36,7 +36,8 b' 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 |
@@ -48,7 +48,7 b' added 1 changesets with 1 changes to 1 f' | |||||
48 | updating working directory |
|
48 | updating working directory | |
49 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
49 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
50 | %% bad host:port for proxy |
|
50 | %% bad host:port for proxy | |
51 | abort: error: Connection refused |
|
51 | abort: error: | |
52 | %% do not use the proxy if it is in the no list |
|
52 | %% do not use the proxy if it is in the no list | |
53 | requesting all changes |
|
53 | requesting all changes | |
54 | adding changesets |
|
54 | adding changesets |
@@ -2,8 +2,8 b'' | |||||
2 |
|
2 | |||
3 | cp "$TESTDIR"/printenv.py . |
|
3 | cp "$TESTDIR"/printenv.py . | |
4 |
|
4 | |||
5 | http_proxy= hg clone http://localhost:$HGPORT/ copy |
|
5 | { http_proxy= hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ | |
6 | echo $? |
|
6 | sed 's/error:.*/error:/' | |
7 | test -d copy || echo copy: No such file or directory |
|
7 | test -d copy || echo copy: No such file or directory | |
8 |
|
8 | |||
9 | # This server doesn't do range requests so it's basically only good for |
|
9 | # This server doesn't do range requests so it's basically only good for |
General Comments 0
You need to be logged in to leave comments.
Login now