Skip to content

Commit

Permalink
twister: Fix exception when running coverage
Browse files Browse the repository at this point in the history
Fix an exception when running coverage using gcov or llvm-cov.

Fixes zephyrproject-rtos#66897

Signed-off-by: Keith Short <[email protected]>
  • Loading branch information
keith-zephyr authored and nashif committed Dec 22, 2023
1 parent 8ad22f7 commit f6a7895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pylib/twister/twisterlib/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def run_coverage(testplan, options):
logger.info("Generating coverage files...")
logger.info(f"Using gcov tool: {options.gcov_tool}")
coverage_tool = CoverageTool.factory(options.coverage_tool)
coverage_tool.gcov_tool = options.gcov_tool
coverage_tool.gcov_tool = str(options.gcov_tool)
coverage_tool.base_dir = os.path.abspath(options.coverage_basedir)
# Apply output format default
if options.coverage_formats is not None:
Expand Down

0 comments on commit f6a7895

Please sign in to comment.