# HG changeset patch # User Augie Fackler # Date 1497551272 14400 # Node ID b6776b34e44e56d004eb9ec80ce604f1d091363d # Parent 7fe1f9785c7556d185f6bc61563831adf4478add tests: use $PYTHON in #! so we always use the right Python diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-bisect.t --- a/tests/test-bisect.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-bisect.t Thu Jun 15 14:27:52 2017 -0400 @@ -453,7 +453,7 @@ test bisecting command $ cat > script.py < #!/usr/bin/env python + > #!$PYTHON > import sys > from mercurial import ui, hg > repo = hg.repository(ui.ui.load(), '.') diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-extdiff.t --- a/tests/test-extdiff.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-extdiff.t Thu Jun 15 14:27:52 2017 -0400 @@ -249,7 +249,7 @@ Prepare custom diff/edit tool: $ cat > 'diff tool.py' << EOT - > #!/usr/bin/env python + > #!$PYTHON > import time > time.sleep(1) # avoid unchanged-timestamp problems > file('a/a', 'ab').write('edited\n') diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-extension.t --- a/tests/test-extension.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-extension.t Thu Jun 15 14:27:52 2017 -0400 @@ -98,7 +98,7 @@ Check hgweb's load order: $ cat > hgweb.cgi < #!/usr/bin/env python + > #!$PYTHON > from mercurial import demandimport; demandimport.enable() > from mercurial.hgweb import hgweb > from mercurial.hgweb import wsgicgi diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-highlight.t --- a/tests/test-highlight.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-highlight.t Thu Jun 15 14:27:52 2017 -0400 @@ -956,7 +956,7 @@ > EOF $ cat > unknownfile << EOF - > #!/usr/bin/python + > #!$PYTHON > def foo(): > pass > EOF diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-largefiles-cache.t --- a/tests/test-largefiles-cache.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-largefiles-cache.t Thu Jun 15 14:27:52 2017 -0400 @@ -93,7 +93,7 @@ Portable way to print file permissions: $ cat > ls-l.py < #!/usr/bin/env python + > #!$PYTHON > import sys, os > path = sys.argv[1] > print '%03o' % (os.lstat(path).st_mode & 0777) diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-largefiles.t --- a/tests/test-largefiles.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-largefiles.t Thu Jun 15 14:27:52 2017 -0400 @@ -215,7 +215,7 @@ Test largefiles can be loaded in hgweb (wrapcommand() shouldn't fail) $ cat < "$TESTTMP/hgweb.cgi" - > #!/usr/bin/env python + > #!$PYTHON > from mercurial import demandimport; demandimport.enable() > from mercurial.hgweb import hgweb > from mercurial.hgweb import wsgicgi diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-merge-symlinks.t --- a/tests/test-merge-symlinks.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-merge-symlinks.t Thu Jun 15 14:27:52 2017 -0400 @@ -1,5 +1,5 @@ $ cat > echo.py < #!/usr/bin/env python + > #!$PYTHON > import os, sys > try: > import msvcrt diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-newcgi.t --- a/tests/test-newcgi.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-newcgi.t Thu Jun 15 14:27:52 2017 -0400 @@ -5,7 +5,7 @@ $ hg init test $ cat >hgweb.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to use hgweb, edit as necessary > @@ -31,7 +31,7 @@ > HGWEBDIRCONF $ cat >hgwebdir.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to export multiple hgweb repos, edit as necessary > diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-newercgi.t --- a/tests/test-newercgi.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-newercgi.t Thu Jun 15 14:27:52 2017 -0400 @@ -5,7 +5,7 @@ $ hg init test $ cat >hgweb.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to use hgweb, edit as necessary > @@ -28,7 +28,7 @@ > HGWEBDIRCONF $ cat >hgwebdir.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to export multiple hgweb repos, edit as necessary > diff -r 7fe1f9785c75 -r b6776b34e44e tests/test-oldcgi.t --- a/tests/test-oldcgi.t Tue Jun 20 09:33:19 2017 -0400 +++ b/tests/test-oldcgi.t Thu Jun 15 14:27:52 2017 -0400 @@ -4,7 +4,7 @@ $ hg init test $ cat >hgweb.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to use hgweb, edit as necessary > @@ -26,7 +26,7 @@ > HGWEBDIRCONF $ cat >hgwebdir.cgi < #!/usr/bin/env python + > #!$PYTHON > # > # An example CGI script to export multiple hgweb repos, edit as necessary >