From abdb3afd7302147fac27551ada8cb91173194133 Mon Sep 17 00:00:00 2001 From: Esther Dalhuisen Date: Thu, 15 Feb 2024 18:08:19 +0100 Subject: [PATCH] coverage: pass .lcovrc config file to genhtml The .lcovrc file can contain several directives for genhtml, mostly pertaining the visualisation of the generated HTML report. Passing the config file to genhtml allows the user to customize their report. Fixes #12863 --- mesonbuild/scripts/coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index d89213065..2375e453e 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -145,7 +145,7 @@ def coverage(outputs: T.List[str], source_root: str, subproject_root: str, build '--legend', '--show-details', '--branch-coverage', - covinfo]) + covinfo] + lcov_config) outfiles.append(('Html', pathlib.Path(htmloutdir, 'index.html'))) elif gcovr_exe and mesonlib.version_compare(gcovr_version, '>=3.3'): htmloutdir = os.path.join(log_dir, 'coveragereport')