Skip to content

Commit cbe94ca

Browse files
nordic-babujhedberg
authored andcommitted
scripts: twister: coverage: do not fail when suspicious_hits are detected.
gcovr 8.0 introduces suspicious_hits detection, warn on such detection, but do not stop coverage calculation at all. Signed-off-by: Bartlomiej Buczek <[email protected]>
1 parent b7a7314 commit cbe94ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/pylib/twister/twisterlib/coverage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ def collect_coverage(self, outdir, coverage_file, ztest_file, coveragelog):
415415
"-e", "tests/*"]
416416
if self.version >= "7.0":
417417
cmd += ["--gcov-object-directory", outdir]
418+
if self.version >= "8.0":
419+
cmd += ["--gcov-ignore-parse-errors=suspicious_hits.warn_once_per_file"]
418420
cmd += excludes + self.options + ["--json", "-o", coverage_file, outdir]
419421
cmd_str = " ".join(cmd)
420422
logger.debug(f"Running: {cmd_str}")

0 commit comments

Comments
 (0)