Mercurial > hg
diff tests/test-hgweb-commands.t @ 39707:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | 23b749b84b8a |
children | 4bd6e444c76f |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-hgweb-commands.t Tue Sep 18 23:47:21 2018 -0400 @@ -2282,7 +2282,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) @@ -2291,7 +2291,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) @@ -2301,7 +2301,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) @@ -2309,7 +2309,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) @@ -2320,7 +2320,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) @@ -2334,7 +2334,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) @@ -2362,11 +2362,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)