Show More
@@ -1,25 +1,26 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | hg clone http://localhost:20059/ copy |
|
4 | 4 | echo $? |
|
5 | 5 | ls copy 2>/dev/null || echo copy: No such file or directory |
|
6 | 6 | |
|
7 | 7 | cat > dumb.py <<EOF |
|
8 | 8 | import BaseHTTPServer, SimpleHTTPServer, signal |
|
9 | 9 | |
|
10 | 10 | def run(server_class=BaseHTTPServer.HTTPServer, |
|
11 | 11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
12 | 12 | server_address = ('localhost', 20059) |
|
13 | 13 | httpd = server_class(server_address, handler_class) |
|
14 | 14 | httpd.serve_forever() |
|
15 | 15 | |
|
16 | 16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) |
|
17 | 17 | run() |
|
18 | 18 | EOF |
|
19 | 19 | |
|
20 | 20 | python dumb.py 2>/dev/null & |
|
21 | 21 | |
|
22 | http_proxy= hg clone http://localhost:20059/foo copy2 | |
|
22 | http_proxy= hg clone http://localhost:20059/foo copy2 2>&1 | \ | |
|
23 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' | |
|
23 | 24 | echo $? |
|
24 | 25 | |
|
25 | 26 | kill $! |
General Comments 0
You need to be logged in to leave comments.
Login now