Bug 1466211 - Switch all |mach python-test| tests to run using pipenv; r=ahal

MozReview-Commit-ID: AzmdDgAgZgI
This commit is contained in:
Dave Hunt
2018-06-08 13:24:27 +01:00
parent 380568a373
commit cdf5d703ce
8 changed files with 60 additions and 184 deletions

View File

@@ -99,11 +99,8 @@ class MachCommands(MachCommandBase):
jobs=1,
three=False,
**kwargs):
if three:
# use pipenv to run tests against Python 3
self.activate_pipenv(os.path.join(here, 'Pipfile'), ['--three'])
else:
self._activate_virtualenv()
pipenv_args = ['--three' if three else '--two']
self.activate_pipenv(pipfile=None, args=pipenv_args, populate=True)
if test_objects is None:
from moztest.resolve import TestResolver