diff tests/test-largefiles.t @ 33111:4a8db3538c39

tests: use cgienv to minimize environment setup at hgweb tests This patch follows other hgweb tests.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 27 Jun 2017 02:24:38 +0900
parents b6776b34e44e
children 8e6f4939a69a
line wrap: on
line diff
--- 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