From patchwork Wed Nov 11 21:03:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9295: test-filecache: use sys.executable to call python From: phabricator X-Patchwork-Id: 47570 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 11 Nov 2020 21:03:35 +0000 Mathiasdm created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY As was mentioned in c102b704edb5 , test scripts calling 'python' or 'python3' might use the wrong python. For test-filecache.py, this causes a failed test on CentOS 7. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9295 AFFECTED FILES tests/test-filecache.py CHANGE DETAILS To: Mathiasdm, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/tests/test-filecache.py b/tests/test-filecache.py --- a/tests/test-filecache.py +++ b/tests/test-filecache.py @@ -5,7 +5,7 @@ import sys if subprocess.call( - ['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable'] + [sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'cacheable'] ): sys.exit(80)