From f6a78954963d8efc3ff567ae569513cf5fa976d7 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Fri, 22 Dec 2023 10:40:38 -0700 Subject: [PATCH] twister: Fix exception when running coverage Fix an exception when running coverage using gcov or llvm-cov. Fixes https://github.com/zephyrproject-rtos/zephyr/issues/66897 Signed-off-by: Keith Short --- scripts/pylib/twister/twisterlib/coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pylib/twister/twisterlib/coverage.py b/scripts/pylib/twister/twisterlib/coverage.py index 4fe4e609ddd7..105d3255b270 100644 --- a/scripts/pylib/twister/twisterlib/coverage.py +++ b/scripts/pylib/twister/twisterlib/coverage.py @@ -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: