comparison tests/test-bad-pull @ 7919:3e6206967570

Backed out changeset 490e40816cbd The difference came from a configuration difference (network unreachable vs. connection refused), not from an OS change.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 30 Mar 2009 01:23:01 +0200
parents 490e40816cbd
children d4a62b6d4a58
comparison
equal deleted inserted replaced
7903:490e40816cbd 7919:3e6206967570
1 #!/bin/sh 1 #!/bin/sh
2 2
3 { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ 3 hg clone http://localhost:$HGPORT/ copy
4 sed 's/error:.*/error:/' 4 echo $?
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
8 import BaseHTTPServer, SimpleHTTPServer, os, signal 8 import BaseHTTPServer, SimpleHTTPServer, os, signal
9 9
21 echo $! >> $DAEMON_PIDS 21 echo $! >> $DAEMON_PIDS
22 22
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; echo $?; } | \ 26 http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \
27 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' 27 sed -e 's/404.*/404/' -e 's/Date:.*/Date:/'
28 echo $?
28 29
29 kill $! 30 kill $!