##// END OF EJS Templates
tests: use pattern matching to mask `ECONNREFUSED` messages...
tests: use pattern matching to mask `ECONNREFUSED` messages The second and third one of these in `test-http-proxy.t` was failing on Windows. The others were found by grep and by failed tests when output was matched and an attempt was made to emit the mask pattern. The first clonebundles failure on Windows emitted: error fetching bundle: [WinError 10061] $ECONNREFUSED$ We should probably stringify that better to get rid of the "[WinError 10061]" part.

File last commit:

r51627:d5cd1fd6 stable
r52835:73a43fe3 default
Show More
test-clone-cgi.t
37 lines | 1.1 KiB | text/troff | Tads3Lexer
Matt Mackall
tests: replace exit 80 with #require
r22046 #require no-msys # MSYS will translate web paths as if they were file paths
Mads Kiilerich
tests: introduce 'hghave msys' to skip tests that would fail because of msys
r15567
Matt Mackall
tests: unify test-clone-cgi
r12410 This is a test of the wire protocol over CGI-based hgweb.
initialize repository
$ hg init test
$ cd test
$ echo a > a
$ hg ci -Ama
adding a
$ cd ..
$ cat >hgweb.cgi <<HGWEB
> #
> # An example CGI script to use hgweb, edit as necessary
> from mercurial import demandimport; demandimport.enable()
> from mercurial.hgweb import hgweb
> from mercurial.hgweb import wsgicgi
Pulkit Goyal
py3: add b'' prefixes to make values bytes...
r37686 > application = hgweb(b"test", b"Empty test repository")
Matt Mackall
tests: unify test-clone-cgi
r12410 > wsgicgi.launch(application)
> HGWEB
$ chmod 755 hgweb.cgi
try hgweb request
StevenGBrown
tests: remove duplication of the CGI environment variables
r13269 $ . "$TESTDIR/cgienv"
Matt Mackall
tests: unify test-clone-cgi
r12410 $ QUERY_STRING="cmd=changegroup&roots=0000000000000000000000000000000000000000"; export QUERY_STRING
Matt Harbison
tests: quote PYTHON usage...
r39743 $ "$PYTHON" hgweb.cgi >page1 2>&1
$ "$PYTHON" "$TESTDIR/md5sum.py" page1
Matt Mackall
tests: unify test-clone-cgi
r12410 1f424bb22ec05c3c6bc866b6e67efe43 page1
Mads Kiilerich
hgweb.cgi: fix internal WSGI emulation (issue3804)...
r18552
make sure headers are sent even when there is no body
Matt Harbison
tests: quote PYTHON usage...
r39743 $ QUERY_STRING="cmd=listkeys&namespace=nosuchnamespace" "$PYTHON" hgweb.cgi
Mads Kiilerich
hgweb.cgi: fix internal WSGI emulation (issue3804)...
r18552 Status: 200 Script output follows\r (esc)
Content-Type: application/mercurial-0.1\r (esc)
Content-Length: 0\r (esc)
\r (esc)