comparison tests/test-filecache.py @ 45834:e01ea8325859

test-filecache: use sys.executable to call python 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. Differential Revision: https://phab.mercurial-scm.org/D9295
author Mathias De Mare <mathias.de_mare@nokia.com>
date Wed, 11 Nov 2020 22:01:45 +0100
parents 2372284d9457
children 6000f5b25c9b
comparison
equal deleted inserted replaced
45833:be6544a05e8f 45834:e01ea8325859
3 import stat 3 import stat
4 import subprocess 4 import subprocess
5 import sys 5 import sys
6 6
7 if subprocess.call( 7 if subprocess.call(
8 ['python', '%s/hghave' % os.environ['TESTDIR'], 'cacheable'] 8 [sys.executable, '%s/hghave' % os.environ['TESTDIR'], 'cacheable']
9 ): 9 ):
10 sys.exit(80) 10 sys.exit(80)
11 11
12 print_ = print 12 print_ = print
13 13