Mercurial > hg
diff tests/test-oldcgi.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 | f5cb822625cc |
line wrap: on
line diff
--- a/tests/test-oldcgi.t Tue Sep 18 22:40:03 2018 -0400 +++ b/tests/test-oldcgi.t Tue Sep 18 23:47:21 2018 -0400 @@ -4,7 +4,7 @@ $ hg init test $ cat >hgweb.cgi <<HGWEB - > #!$PYTHON + > #!"$PYTHON" > # > # An example CGI script to use hgweb, edit as necessary > @@ -26,7 +26,7 @@ > HGWEBDIRCONF $ cat >hgwebdir.cgi <<HGWEBDIR - > #!$PYTHON + > #!"$PYTHON" > # > # An example CGI script to export multiple hgweb repos, edit as necessary > @@ -62,15 +62,15 @@ $ chmod 755 hgwebdir.cgi $ . "$TESTDIR/cgienv" - $ $PYTHON hgweb.cgi > page1 - $ $PYTHON hgwebdir.cgi > page2 + $ "$PYTHON" hgweb.cgi > page1 + $ "$PYTHON" hgwebdir.cgi > page2 $ PATH_INFO="/test/" $ PATH_TRANSLATED="/var/something/test.cgi" $ REQUEST_URI="/test/test/" $ SCRIPT_URI="http://hg.omnifarious.org/test/test/" $ SCRIPT_URL="/test/test/" - $ $PYTHON hgwebdir.cgi > page3 + $ "$PYTHON" hgwebdir.cgi > page3 $ grep -i error page1 page2 page3 [1]