Bug 1635526 - Activate virtualenv in mach static-analysis autotest r=andi

After bug 1633039, we won't be guaranteed to have the `init` virtualenv already created after running a build, so `static-analysis autotest` needs to make sure it's created all by itself. This results in failures like [this](https://treeherder.mozilla.org/#/jobs?repo=autoland&selectedTaskRun=WDRF1EzDRA6jPqPb60X5Pw-0&revision=332ce0963b4e92d68b0de25860debb7694dc38d5).

Differential Revision: https://phabricator.services.mozilla.com/D73924
This commit is contained in:
Ricky Stewart 2020-05-05 18:31:34 +00:00
parent 5db69b1b8c
commit ea0981892a

View file

@ -1063,6 +1063,7 @@ class StaticAnalysis(MachCommandBase):
# checker in particulat and thus 'force_download' becomes 'False' since we want to # checker in particulat and thus 'force_download' becomes 'False' since we want to
# do this on a local trusted clang-tidy package. # do this on a local trusted clang-tidy package.
self._set_log_level(verbose) self._set_log_level(verbose)
self._activate_virtualenv()
self._dump_results = dump_results self._dump_results = dump_results
force_download = not self._dump_results force_download = not self._dump_results