]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
chore: ignore `ext/` files in coverage reports
authorPieter Lexis <pieter.lexis@powerdns.com>
Tue, 30 Sep 2025 15:55:32 +0000 (17:55 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Tue, 14 Oct 2025 18:34:58 +0000 (20:34 +0200)
tasks.py

index cadafb433ec8f40f782826eb14bdb6afa7a13229..c6dbf8641aa44e44a73342e4697d9db1f0e4b42e 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -238,7 +238,7 @@ def generate_coverage_info(c, binary, product, outputDir):
     if is_coverage_enabled():
         version = os.getenv('BUILDER_VERSION')
         c.run(f'llvm-profdata-{clang_version} merge -sparse -o {outputDir}/temp.profdata /tmp/code-*.profraw')
-        c.run(f'llvm-cov-{clang_version} export --format=lcov --ignore-filename-regex=\'^/usr/\' -instr-profile={outputDir}/temp.profdata -object {binary} > {outputDir}/coverage.lcov')
+        c.run(f'llvm-cov-{clang_version} export --format=lcov --ignore-filename-regex=\'^/usr/\' --ignore-filename-regex=\'ext/\' -instr-profile={outputDir}/temp.profdata -object {binary} > {outputDir}/coverage.lcov')
         c.run(f'{outputDir}/.github/scripts/normalize_paths_in_coverage.py {outputDir} {product} {version} {outputDir}/coverage.lcov {outputDir}/normalized_coverage.lcov 0')
         c.run(f'mv {outputDir}/normalized_coverage.lcov {outputDir}/coverage.lcov')