2005-07-29 18:19:43 +04:00
|
|
|
#!/bin/sh
|
2005-06-17 23:03:44 +04:00
|
|
|
|
2005-06-27 03:20:46 +04:00
|
|
|
hg clone http://localhost:20059/ copy
|
2005-06-28 14:08:14 +04:00
|
|
|
echo $?
|
2006-03-15 13:09:24 +03:00
|
|
|
ls copy 2>/dev/null || echo copy: No such file or directory
|
2005-06-17 23:03:44 +04:00
|
|
|
|
|
|
|
cat > dumb.py <<EOF
|
|
|
|
import BaseHTTPServer, SimpleHTTPServer, signal
|
|
|
|
|
|
|
|
def run(server_class=BaseHTTPServer.HTTPServer,
|
|
|
|
handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
|
|
|
|
server_address = ('localhost', 20059)
|
|
|
|
httpd = server_class(server_address, handler_class)
|
|
|
|
httpd.serve_forever()
|
|
|
|
|
|
|
|
signal.signal(signal.SIGTERM, lambda x: sys.exit(0))
|
|
|
|
run()
|
|
|
|
EOF
|
|
|
|
|
|
|
|
python dumb.py 2>/dev/null &
|
2006-07-06 22:49:19 +04:00
|
|
|
echo $! >> $DAEMON_PIDS
|
2005-06-17 23:03:44 +04:00
|
|
|
|
2006-06-16 02:42:16 +04:00
|
|
|
http_proxy= hg clone http://localhost:20059/foo copy2 2>&1 | \
|
|
|
|
sed -e 's/404.*/404/' -e 's/Date:.*/Date:/'
|
2005-06-28 14:08:14 +04:00
|
|
|
echo $?
|
2005-06-17 23:03:44 +04:00
|
|
|
|
2005-06-27 09:52:13 +04:00
|
|
|
kill $!
|