##// END OF EJS Templates
Fix style nit and add some comments to tests.
Dirkjan Ochtman -
r5580:f429e0e0 default
parent child Browse files
Show More
@@ -16,9 +16,7 b' def launch(application):'
16 util.set_binary(sys.stdout)
16 util.set_binary(sys.stdout)
17
17
18 environ = dict(os.environ.items())
18 environ = dict(os.environ.items())
19 if 'PATH_INFO' not in environ:
19 environ.setdefault('PATH_INFO', '')
20 environ['PATH_INFO'] = ''
21
22 environ['wsgi.input'] = sys.stdin
20 environ['wsgi.input'] = sys.stdin
23 environ['wsgi.errors'] = sys.stderr
21 environ['wsgi.errors'] = sys.stderr
24 environ['wsgi.version'] = (1, 0)
22 environ['wsgi.version'] = (1, 0)
@@ -1,4 +1,5 b''
1 #!/bin/sh
1 #!/bin/sh
2 # Some tests for hgweb. Tests static files, plain files and different 404's.
2
3
3 hg init test
4 hg init test
4 cd test
5 cd test
@@ -1,4 +1,7 b''
1 #!/bin/sh
1 #!/bin/sh
2 # This tests if hgweb and hgwebdir still work if the REQUEST_URI variable is
3 # no longer passed with the request. Instead, SCRIPT_NAME and PATH_INFO
4 # should be used from d74fc8dec2b4 onward to route the request.
2
5
3 mkdir repo
6 mkdir repo
4 cd repo
7 cd repo
@@ -1,4 +1,6 b''
1 #!/bin/sh
1 #!/bin/sh
2 # Tests some basic hgwebdir functionality. Tests setting up paths and
3 # collection, different forms of 404s and the subdirectory support.
2
4
3 mkdir webdir
5 mkdir webdir
4 cd webdir
6 cd webdir
@@ -1,4 +1,6 b''
1 #!/bin/sh
1 #!/bin/sh
2 # This tests if CGI files from after d0db3462d568 but
3 # before d74fc8dec2b4 still work.
2
4
3 hg init test
5 hg init test
4
6
@@ -1,4 +1,5 b''
1 #!/bin/sh
1 #!/bin/sh
2 # This is a rudimentary test of the CGI files as of d74fc8dec2b4.
2
3
3 hg init test
4 hg init test
4
5
@@ -1,4 +1,6 b''
1 #!/bin/sh
1 #!/bin/sh
2 # Tests if hgweb can run without touching sys.stdin, as is required
3 # by the WSGI standard and strictly implemented by mod_wsgi.
2
4
3 mkdir repo
5 mkdir repo
4 cd repo
6 cd repo
@@ -1,4 +1,5 b''
1 #!/bin/sh
1 #!/bin/sh
2 # This tests if CGI files from before d0db3462d568 still work.
2
3
3 hg init test
4 hg init test
4
5
General Comments 0
You need to be logged in to leave comments. Login now