test-bad-pull.t
24 lines
| 779 B
| text/troff
|
Tads3Lexer
/ tests / test-bad-pull.t
|
r15446 | $ "$TESTDIR/hghave" serve || exit 80 | ||
|
r11859 | $ hg clone http://localhost:$HGPORT/ copy | ||
abort: error: Connection refused | ||||
|
r12316 | [255] | ||
|
r11859 | |||
|
r15515 | $ test -d copy | ||
[1] | ||||
|
r11859 | |||
$ cat > dumb.py <<EOF | ||||
> import BaseHTTPServer, SimpleHTTPServer, os, signal | ||||
> def run(server_class=BaseHTTPServer.HTTPServer, | ||||
> handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | ||||
> server_address = ('localhost', int(os.environ['HGPORT'])) | ||||
> httpd = server_class(server_address, handler_class) | ||||
|
r16296 | > os.system("hg clone http://localhost:$HGPORT/foo copy2&") | ||
> httpd.handle_request() | ||||
|
r11859 | > run() | ||
> EOF | ||||
|
r16296 | $ python dumb.py | ||
localhost - - [*] code 404, message File not found (glob) | ||||
localhost - - [*] "GET /foo?cmd=capabilities HTTP/1.1" 404 - (glob) | ||||
|
r12376 | abort: HTTP Error 404: * (glob) | ||