tests/test-extension.t
changeset 33099 4a8db3538c39
parent 33098 c4a20c9484e7
child 33132 c467d13334ee
--- 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 '<a href="/rev/[0-9a-z]*">'
      <a href="/rev/c24b9ac61126">add file</a>