##// END OF EJS Templates
hgweb: make the test suite use hgweb in a more WSGI compliant way...
Mads Kiilerich -
r18646:c6a81e54 default
parent child Browse files
Show More
@@ -112,7 +112,8 b" Check hgweb's load order:"
112 > wsgicgi.launch(application)
112 > wsgicgi.launch(application)
113 > EOF
113 > EOF
114
114
115 $ SCRIPT_NAME='/' SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \
115 $ REQUEST_METHOD='GET' PATH_INFO='/' SCRIPT_NAME='' QUERY_STRING='' \
116 > SERVER_PORT='80' SERVER_NAME='localhost' python hgweb.cgi \
116 > | grep '^[0-9]) ' # ignores HTML output
117 > | grep '^[0-9]) ' # ignores HTML output
117 1) foo imported
118 1) foo imported
118 1) bar imported
119 1) bar imported
@@ -39,6 +39,7 b' should be used from d74fc8dec2b4 onward '
39 > 'wsgi.multiprocess': False,
39 > 'wsgi.multiprocess': False,
40 > 'wsgi.run_once': False,
40 > 'wsgi.run_once': False,
41 > 'REQUEST_METHOD': 'GET',
41 > 'REQUEST_METHOD': 'GET',
42 > 'PATH_INFO': '/',
42 > 'SCRIPT_NAME': '',
43 > 'SCRIPT_NAME': '',
43 > 'SERVER_NAME': '127.0.0.1',
44 > 'SERVER_NAME': '127.0.0.1',
44 > 'SERVER_PORT': os.environ['HGPORT'],
45 > 'SERVER_PORT': os.environ['HGPORT'],
@@ -49,6 +50,7 b' should be used from d74fc8dec2b4 onward '
49 > content = app(env, startrsp)
50 > content = app(env, startrsp)
50 > sys.stdout.write(output.getvalue())
51 > sys.stdout.write(output.getvalue())
51 > sys.stdout.write(''.join(content))
52 > sys.stdout.write(''.join(content))
53 > getattr(content, 'close', lambda : None)()
52 > print '---- ERRORS'
54 > print '---- ERRORS'
53 > print errors.getvalue()
55 > print errors.getvalue()
54 >
56 >
@@ -101,7 +103,7 b' should be used from d74fc8dec2b4 onward '
101 [('Content-Type', 'text/plain; charset=ascii')]
103 [('Content-Type', 'text/plain; charset=ascii')]
102 ---- DATA
104 ---- DATA
103
105
104 repo/
106 /repo/
105
107
106 ---- ERRORS
108 ---- ERRORS
107
109
@@ -49,6 +49,7 b' should be used from d74fc8dec2b4 onward '
49 > content = app(env, startrsp)
49 > content = app(env, startrsp)
50 > sys.stdout.write(output.getvalue())
50 > sys.stdout.write(output.getvalue())
51 > sys.stdout.write(''.join(content))
51 > sys.stdout.write(''.join(content))
52 > getattr(content, 'close', lambda : None)()
52 > print '---- ERRORS'
53 > print '---- ERRORS'
53 > print errors.getvalue()
54 > print errors.getvalue()
54 >
55 >
General Comments 0
You need to be logged in to leave comments. Login now