зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656764 - Relax the version check for clang-format r=andi DONTBUILD
So that it works when CLANG_VENDOR is set Differential Revision: https://phabricator.services.mozilla.com/D85687
This commit is contained in:
Родитель
f58ab49971
Коммит
d61fa8949f
|
@ -985,7 +985,7 @@ class StaticAnalysis(MachCommandBase):
|
|||
try:
|
||||
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT).decode('utf-8')
|
||||
version_string = 'clang-format version ' + version
|
||||
if output.startswith(version_string):
|
||||
if version_string in output:
|
||||
return True
|
||||
except subprocess.CalledProcessError as e:
|
||||
self.log(logging.ERROR, 'static-analysis', {},
|
||||
|
|
Загрузка…
Ссылка в новой задаче