Show More
@@ -1,26 +1,27 b'' | |||||
1 | #!/bin/sh -x |
|
1 | #!/bin/sh -x | |
2 |
|
2 | |||
3 | hg clone http://localhost:20059/ copy |
|
3 | hg clone http://localhost:20059/ copy | |
4 | echo $? |
|
4 | echo $? | |
5 | ls copy |
|
5 | ls copy | |
6 |
|
6 | |||
7 | cat > dumb.py <<EOF |
|
7 | cat > dumb.py <<EOF | |
8 | import BaseHTTPServer, SimpleHTTPServer, signal |
|
8 | import BaseHTTPServer, SimpleHTTPServer, signal | |
9 |
|
9 | |||
10 | def run(server_class=BaseHTTPServer.HTTPServer, |
|
10 | def run(server_class=BaseHTTPServer.HTTPServer, | |
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | |
12 | server_address = ('localhost', 20059) |
|
12 | server_address = ('localhost', 20059) | |
13 | httpd = server_class(server_address, handler_class) |
|
13 | httpd = server_class(server_address, handler_class) | |
14 | httpd.serve_forever() |
|
14 | httpd.serve_forever() | |
15 |
|
15 | |||
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) |
|
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) | |
17 | run() |
|
17 | run() | |
18 | EOF |
|
18 | EOF | |
19 |
|
19 | |||
20 | python dumb.py 2>/dev/null & |
|
20 | python dumb.py 2>/dev/null & | |
|
21 | sleep 2 | |||
21 |
|
22 | |||
22 | hg clone http://localhost:20059/foo copy2 |
|
23 | hg clone http://localhost:20059/foo copy2 | |
23 | echo $? |
|
24 | echo $? | |
24 |
|
25 | |||
25 | set +x |
|
26 | set +x | |
26 | kill $! |
|
27 | kill $! |
@@ -1,20 +1,22 b'' | |||||
1 | + hg clone http://localhost:20059/ copy |
|
1 | + hg clone http://localhost:20059/ copy | |
2 | requesting all changes |
|
2 | requesting all changes | |
3 | adding changesets |
|
3 | adding changesets | |
4 | abort: error 111: Connection refused |
|
4 | abort: error 111: Connection refused | |
5 | transaction abort! |
|
5 | transaction abort! | |
6 | rollback completed |
|
6 | rollback completed | |
7 | + echo 255 |
|
7 | + echo 255 | |
8 | 255 |
|
8 | 255 | |
9 | + ls copy |
|
9 | + ls copy | |
|
10 | ls: copy: No such file or directory | |||
10 | + cat |
|
11 | + cat | |
|
12 | + sleep 2 | |||
11 | + python dumb.py |
|
13 | + python dumb.py | |
12 | + hg clone http://localhost:20059/foo copy2 |
|
14 | + hg clone http://localhost:20059/foo copy2 | |
13 | requesting all changes |
|
15 | requesting all changes | |
14 | adding changesets |
|
16 | adding changesets | |
15 | abort: HTTP Error 404: File not found |
|
17 | abort: HTTP Error 404: File not found | |
16 | transaction abort! |
|
18 | transaction abort! | |
17 | rollback completed |
|
19 | rollback completed | |
18 | + echo 255 |
|
20 | + echo 255 | |
19 | 255 |
|
21 | 255 | |
20 | + set +x |
|
22 | + set +x |
General Comments 0
You need to be logged in to leave comments.
Login now