Mercurial > hg
comparison tests/test-newcgi.t @ 32938:b6776b34e44e
tests: use $PYTHON in #! so we always use the right Python
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 15 Jun 2017 14:27:52 -0400 |
parents | 7a9cbb315d84 |
children | 8e6f4939a69a |
comparison
equal
deleted
inserted
replaced
32937:7fe1f9785c75 | 32938:b6776b34e44e |
---|---|
3 This tests if CGI files from after d0db3462d568 but | 3 This tests if CGI files from after d0db3462d568 but |
4 before d74fc8dec2b4 still work. | 4 before d74fc8dec2b4 still work. |
5 | 5 |
6 $ hg init test | 6 $ hg init test |
7 $ cat >hgweb.cgi <<HGWEB | 7 $ cat >hgweb.cgi <<HGWEB |
8 > #!/usr/bin/env python | 8 > #!$PYTHON |
9 > # | 9 > # |
10 > # An example CGI script to use hgweb, edit as necessary | 10 > # An example CGI script to use hgweb, edit as necessary |
11 > | 11 > |
12 > import cgitb | 12 > import cgitb |
13 > cgitb.enable() | 13 > cgitb.enable() |
29 > [paths] | 29 > [paths] |
30 > test = test | 30 > test = test |
31 > HGWEBDIRCONF | 31 > HGWEBDIRCONF |
32 | 32 |
33 $ cat >hgwebdir.cgi <<HGWEBDIR | 33 $ cat >hgwebdir.cgi <<HGWEBDIR |
34 > #!/usr/bin/env python | 34 > #!$PYTHON |
35 > # | 35 > # |
36 > # An example CGI script to export multiple hgweb repos, edit as necessary | 36 > # An example CGI script to export multiple hgweb repos, edit as necessary |
37 > | 37 > |
38 > import cgitb | 38 > import cgitb |
39 > cgitb.enable() | 39 > cgitb.enable() |