Patchwork [2,of,6,v3] tests: sed away python #! in test-run-tests.t to avoid some upcoming insanity

login
register
mail settings
Submitter Augie Fackler
Date June 20, 2017, 2:10 p.m.
Message ID <b2f59445c55490bee0bc.1497967837@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/21527/
State Accepted
Headers show

Comments

Augie Fackler - June 20, 2017, 2:10 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1497965599 14400
#      Tue Jun 20 09:33:19 2017 -0400
# Node ID b2f59445c55490bee0bc421d731a375691a7bc8a
# Parent  c2e465d9fb3b3c784207c5df126295f59d432dc6
tests: sed away python #! in test-run-tests.t to avoid some upcoming insanity

Patch

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -1000,8 +1000,8 @@  running is placed.
   >   $ 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