sanitycheck: fix coverage capturing

We got the gcov with the coverage tool (lcov vs gcovr) confused..

Fixes #24003

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-04-07 09:34:05 -04:00
commit b06a5b5707
2 changed files with 2 additions and 2 deletions

View file

@ -3015,7 +3015,6 @@ class CoverageTool:
logger.error("Unsupported coverage tool specified: {}".format(tool))
return None
t.gcov_tool = tool
return t
@staticmethod

View file

@ -1013,7 +1013,7 @@ def main():
suite.summary(options.disable_unrecognized_section_test)
if options.coverage:
if not options.gcov_tools:
if not options.gcov_tool:
use_system_gcov = False
for plat in options.coverage_platform:
@ -1029,6 +1029,7 @@ def main():
logger.info("Generating coverage files...")
coverage_tool = CoverageTool.factory(options.coverage_tool)
coverage_tool.gcov_tool = options.gcov_tool
coverage_tool.base_dir = ZEPHYR_BASE
coverage_tool.add_ignore_file('generated')
coverage_tool.add_ignore_directory('tests')