From ea0981892a7e7ee94091f1bacaafa754f83f683d Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Tue, 5 May 2020 18:31:34 +0000 Subject: [PATCH] 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 --- python/mozbuild/mozbuild/code-analysis/mach_commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py index 05994b49c359..d7e7e68f654e 100644 --- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py +++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py @@ -1063,6 +1063,7 @@ class StaticAnalysis(MachCommandBase): # checker in particulat and thus 'force_download' becomes 'False' since we want to # do this on a local trusted clang-tidy package. self._set_log_level(verbose) + self._activate_virtualenv() self._dump_results = dump_results force_download = not self._dump_results