##// END OF EJS Templates
Use "kill $!" to kill running background processes....
Thomas Arendsen Hein -
r492:9bd468e3 default
parent child Browse files
Show More
@@ -1,32 +1,32
1 1 #!/bin/bash
2 2
3 3 hg clone http://localhost:20059/ copy
4 4 cd copy
5 5 hg verify
6 6 hg co
7 7 cat foo
8 8 hg manifest
9 9
10 10 cat > dumb.py <<EOF
11 11 import BaseHTTPServer, SimpleHTTPServer, signal
12 12
13 13 def run(server_class=BaseHTTPServer.HTTPServer,
14 14 handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
15 15 server_address = ('localhost', 20059)
16 16 httpd = server_class(server_address, handler_class)
17 17 httpd.serve_forever()
18 18
19 19 signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
20 20 run()
21 21 EOF
22 22
23 23 python dumb.py 2>/dev/null &
24 24
25 25 hg clone http://localhost:20059/foo copy2
26 26 cd copy2
27 27 hg verify
28 28 hg co
29 29 cat foo
30 30 hg manifest
31 31
32 kill %1
32 kill $!
@@ -1,20 +1,20
1 1 #!/bin/bash
2 2
3 3 mkdir test
4 4 cd test
5 5 echo foo>foo
6 6 hg init
7 7 hg addremove
8 8 hg commit -t "1"
9 9 hg verify
10 10 hg serve -p 20059 2>/dev/null &
11 11 cd ..
12 12
13 13 hg clone http://localhost:20059/ copy
14 14 cd copy
15 15 hg verify
16 16 hg co
17 17 cat foo
18 18 hg manifest
19 19
20 kill %hg
20 kill $!
General Comments 0
You need to be logged in to leave comments. Login now