##// END OF EJS Templates
test-bad-pull: partially adjust for Windows...
Adrian Buehlmann -
r17019:5d053859 default
parent child Browse files
Show More
@@ -1,27 +1,33 b''
1 1 $ "$TESTDIR/hghave" serve || exit 80
2 2
3 #if windows
4 $ hg clone http://localhost:$HGPORT/ copy
5 abort: * (glob)
6 [255]
7 #else
3 8 $ hg clone http://localhost:$HGPORT/ copy
4 9 abort: error: Connection refused
5 10 [255]
11 #endif
6 12
7 13 $ test -d copy
8 14 [1]
9 15
10 16 $ cat > dumb.py <<EOF
11 17 > import BaseHTTPServer, SimpleHTTPServer, os, signal
12 18 > def run(server_class=BaseHTTPServer.HTTPServer,
13 19 > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
14 20 > server_address = ('localhost', int(os.environ['HGPORT']))
15 21 > httpd = server_class(server_address, handler_class)
16 22 > open("listening", "w")
17 23 > httpd.handle_request()
18 24 > run()
19 25 > EOF
20 26
21 27 $ python dumb.py 2> log &
22 28 $ P=$!
23 29 $ while [ ! -f listening ]; do sleep 0; done
24 30 $ hg clone http://localhost:$HGPORT/foo copy2
25 31 abort: HTTP Error 404: * (glob)
26 32 [255]
27 33 $ wait $P
General Comments 0
You need to be logged in to leave comments. Login now