From patchwork Fri Jul 2 22:37:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10944: check-shbang: accept -S with env From: phabricator X-Patchwork-Id: 49256 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Fri, 2 Jul 2021 22:37:53 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is useful to use `python3 -u` in a coming patch. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10944 AFFECTED FILES tests/test-check-shbang.t CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/tests/test-check-shbang.t b/tests/test-check-shbang.t --- a/tests/test-check-shbang.t +++ b/tests/test-check-shbang.t @@ -5,7 +5,7 @@ look for python scripts that do not use /usr/bin/env - $ testrepohg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env python") - **/*.t' + $ testrepohg files 'set:grep(r"^#!.*?python") and not grep(r"^#!/usr/bi{1}n/env (-S )?python") - **/*.t' [1] In tests, enforce $PYTHON and *not* /usr/bin/env python or similar: