tests: sed away python #! in test-run-tests.t to avoid some upcoming insanity
authorAugie Fackler <augie@google.com>
Tue, 20 Jun 2017 09:33:19 -0400
changeset 32937 7fe1f9785c75
parent 32936 edbd60e31217
child 32938 b6776b34e44e
tests: sed away python #! in test-run-tests.t to avoid some upcoming insanity
tests/test-run-tests.t
--- a/tests/test-run-tests.t	Tue Jun 20 08:44:56 2017 -0400
+++ b/tests/test-run-tests.t	Tue Jun 20 09:33:19 2017 -0400
@@ -1000,8 +1000,8 @@
   >   $ test "\$TESTDIR" = "$TESTTMP"/anothertests
   > #endif
   >   $ test "\$RUNTESTDIR" = "$TESTDIR"
-  >   $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py
-  >   #!/usr/bin/env python
+  >   $ head -n 3 "\$RUNTESTDIR"/../contrib/check-code.py | sed 's@.!.*python@#!USRBINENVPY@'
+  >   #!USRBINENVPY
   >   #
   >   # check-code - a style and portability checker for Mercurial
   > EOF