Show More
@@ -13,12 +13,18 b'' | |||
|
13 | 13 | > handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
14 | 14 | > server_address = ('localhost', int(os.environ['HGPORT'])) |
|
15 | 15 | > httpd = server_class(server_address, handler_class) |
|
16 | > os.system("hg clone http://localhost:$HGPORT/foo copy2&") | |
|
16 | > open("listening", "w") | |
|
17 | 17 | > httpd.handle_request() |
|
18 | 18 | > run() |
|
19 | 19 | > EOF |
|
20 | 20 | |
|
21 | $ python dumb.py | |
|
21 | $ python dumb.py 2> log & | |
|
22 | $ P=$! | |
|
23 | $ while [ ! -f listening ]; do true; done | |
|
24 | $ hg clone http://localhost:$HGPORT/foo copy2 | |
|
25 | abort: HTTP Error 404: * (glob) | |
|
26 | [255] | |
|
27 | $ wait $P | |
|
28 | $ cat log | |
|
22 | 29 | localhost - - [*] code 404, message File not found (glob) |
|
23 | 30 | localhost - - [*] "GET /foo?cmd=capabilities HTTP/1.1" 404 - (glob) |
|
24 | abort: HTTP Error 404: * (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now