Mercurial > hg
diff tests/test-hgweb-commands.t @ 33262:8e6f4939a69a
tests: replace yet more calls to `python` with $PYTHON
These are some simple cases. More to come in a future change.
Reviewers: krbullock
Reviewed By: krbullock
Differential Revision: https://phab.mercurial-scm.org/D4
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 05 Jul 2017 11:10:11 -0500 |
parents | 7c82bfd55d47 |
children | 10e162bb9bf5 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Wed Jul 05 11:09:55 2017 -0500 +++ b/tests/test-hgweb-commands.t Wed Jul 05 11:10:11 2017 -0500 @@ -2265,7 +2265,7 @@ $ . "$TESTDIR/cgienv" $ PATH_INFO=/bookmarks; export PATH_INFO $ QUERY_STRING='style=raw' - $ python hgweb.cgi | grep -v ETag: + $ $PYTHON hgweb.cgi | grep -v ETag: Status: 200 Script output follows\r (esc) Content-Type: text/plain; charset=ascii\r (esc) \r (esc) @@ -2274,7 +2274,7 @@ $ PATH_INFO=/; export PATH_INFO $ QUERY_STRING='cmd=listkeys&namespace=bookmarks' - $ python hgweb.cgi + $ $PYTHON hgweb.cgi Status: 200 Script output follows\r (esc) Content-Type: application/mercurial-0.1\r (esc) Content-Length: 0\r (esc) @@ -2284,7 +2284,7 @@ $ PATH_INFO=/log; export PATH_INFO $ QUERY_STRING='rev=babar' - $ python hgweb.cgi > search + $ $PYTHON hgweb.cgi > search $ grep Status search Status: 200 Script output follows\r (esc) @@ -2292,7 +2292,7 @@ $ PATH_INFO=/summary; export PATH_INFO $ QUERY_STRING='style=monoblue'; export QUERY_STRING - $ python hgweb.cgi > summary.out + $ $PYTHON hgweb.cgi > summary.out $ grep "^Status" summary.out Status: 200 Script output follows\r (esc) @@ -2303,7 +2303,7 @@ $ PATH_INFO=/rev/5; export PATH_INFO $ QUERY_STRING='style=raw' - $ python hgweb.cgi #> search + $ $PYTHON hgweb.cgi #> search Status: 404 Not Found\r (esc) ETag: W/"*"\r (glob) (esc) Content-Type: text/plain; charset=ascii\r (esc) @@ -2317,7 +2317,7 @@ $ PATH_INFO=/rev/4; export PATH_INFO $ QUERY_STRING='style=raw' - $ python hgweb.cgi #> search + $ $PYTHON hgweb.cgi #> search Status: 404 Not Found\r (esc) ETag: W/"*"\r (glob) (esc) Content-Type: text/plain; charset=ascii\r (esc) @@ -2345,11 +2345,11 @@ $ hg phase --force --secret 0 $ PATH_INFO=/graph/; export PATH_INFO $ QUERY_STRING='' - $ python hgweb.cgi | grep Status + $ $PYTHON hgweb.cgi | grep Status Status: 200 Script output follows\r (esc) (check rendered revision) $ QUERY_STRING='style=raw' - $ python hgweb.cgi | grep -v ETag + $ $PYTHON hgweb.cgi | grep -v ETag Status: 200 Script output follows\r (esc) Content-Type: text/plain; charset=ascii\r (esc) \r (esc)