# HG changeset patch # User FUJIWARA Katsunori # Date 1498497878 -32400 # Node ID 4a8db3538c39244dbc71f55f4016b646a79d204b # Parent c4a20c9484e7c4862dba5a978d290fb29206a31b tests: use cgienv to minimize environment setup at hgweb tests This patch follows other hgweb tests. diff -r c4a20c9484e7 -r 4a8db3538c39 tests/test-extension.t --- a/tests/test-extension.t Tue Jun 27 02:24:37 2017 +0900 +++ b/tests/test-extension.t Tue Jun 27 02:24:38 2017 +0900 @@ -116,9 +116,9 @@ > application = hgweb('.', 'test repo') > wsgicgi.launch(application) > EOF + $ . "$TESTDIR/cgienv" - $ REQUEST_METHOD='GET' PATH_INFO='/' SCRIPT_NAME='' QUERY_STRING='' \ - > SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \ + $ PATH_INFO='/' SCRIPT_NAME='' python hgweb.cgi \ > | grep '^[0-9]) ' # ignores HTML output 1) foo imported 1) bar imported @@ -137,9 +137,7 @@ $ PATH_INFO='/shortlog' #endif $ export PATH_INFO - $ REQUEST_METHOD='GET' SCRIPT_NAME='' \ - > QUERY_STRING='rev=foo() and bar()' \ - > SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \ + $ SCRIPT_NAME='' QUERY_STRING='rev=foo() and bar()' python hgweb.cgi \ > | grep '' add file diff -r c4a20c9484e7 -r 4a8db3538c39 tests/test-largefiles.t --- a/tests/test-largefiles.t Tue Jun 27 02:24:37 2017 +0900 +++ b/tests/test-largefiles.t Tue Jun 27 02:24:38 2017 +0900 @@ -222,13 +222,9 @@ > application = hgweb('.', 'test repo') > wsgicgi.launch(application) > EOF + $ . "$TESTDIR/cgienv" - $ PATH_INFO='/' \ - > QUERY_STRING='' \ - > REQUEST_METHOD='GET' \ - > SCRIPT_NAME='' \ - > SERVER_NAME='localhost' \ - > SERVER_PORT='80' \ + $ SCRIPT_NAME='' \ > python "$TESTTMP/hgweb.cgi" > /dev/null Test archiving the various revisions. These hit corner cases known with