Show More
@@ -1,26 +1,27 b'' | |||
|
1 | 1 | #!/bin/sh -x |
|
2 | 2 | |
|
3 | 3 | hg clone http://localhost:20059/ copy |
|
4 | 4 | echo $? |
|
5 | 5 | ls copy |
|
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 | sleep 2 | |
|
21 | 22 | |
|
22 | 23 | hg clone http://localhost:20059/foo copy2 |
|
23 | 24 | echo $? |
|
24 | 25 | |
|
25 | 26 | set +x |
|
26 | 27 | kill $! |
@@ -1,20 +1,22 b'' | |||
|
1 | 1 | + hg clone http://localhost:20059/ copy |
|
2 | 2 | requesting all changes |
|
3 | 3 | adding changesets |
|
4 | 4 | abort: error 111: Connection refused |
|
5 | 5 | transaction abort! |
|
6 | 6 | rollback completed |
|
7 | 7 | + echo 255 |
|
8 | 8 | 255 |
|
9 | 9 | + ls copy |
|
10 | ls: copy: No such file or directory | |
|
10 | 11 | + cat |
|
12 | + sleep 2 | |
|
11 | 13 | + python dumb.py |
|
12 | 14 | + hg clone http://localhost:20059/foo copy2 |
|
13 | 15 | requesting all changes |
|
14 | 16 | adding changesets |
|
15 | 17 | abort: HTTP Error 404: File not found |
|
16 | 18 | transaction abort! |
|
17 | 19 | rollback completed |
|
18 | 20 | + echo 255 |
|
19 | 21 | 255 |
|
20 | 22 | + set +x |
General Comments 0
You need to be logged in to leave comments.
Login now