comparison tests/run-tests.py @ 42428:ae3f862cbb3d

py3: add b'' prefix at one place in run-tests.py #skip-blame because just b'' prefix Differential Revision: https://phab.mercurial-scm.org/D6482
author Pulkit Goyal <pulkit@yandex-team.ru>
date Wed, 05 Jun 2019 22:44:38 +0300
parents 15d5a2de44aa
children 84aff7e20c55
comparison
equal deleted inserted replaced
42427:027f1567f97f 42428:ae3f862cbb3d
3180 """Install chg into the test environment""" 3180 """Install chg into the test environment"""
3181 vlog('# Performing temporary installation of CHG') 3181 vlog('# Performing temporary installation of CHG')
3182 assert os.path.dirname(self._bindir) == self._installdir 3182 assert os.path.dirname(self._bindir) == self._installdir
3183 assert self._hgroot, 'must be called after _installhg()' 3183 assert self._hgroot, 'must be called after _installhg()'
3184 cmd = (b'"%(make)s" clean install PREFIX="%(prefix)s"' 3184 cmd = (b'"%(make)s" clean install PREFIX="%(prefix)s"'
3185 % {b'make': 'make', # TODO: switch by option or environment? 3185 % {b'make': b'make', # TODO: switch by option or environment?
3186 b'prefix': self._installdir}) 3186 b'prefix': self._installdir})
3187 cwd = os.path.join(self._hgroot, b'contrib', b'chg') 3187 cwd = os.path.join(self._hgroot, b'contrib', b'chg')
3188 vlog("# Running", cmd) 3188 vlog("# Running", cmd)
3189 proc = subprocess.Popen(cmd, shell=True, cwd=cwd, 3189 proc = subprocess.Popen(cmd, shell=True, cwd=cwd,
3190 stdin=subprocess.PIPE, stdout=subprocess.PIPE, 3190 stdin=subprocess.PIPE, stdout=subprocess.PIPE,