summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsther Dalhuisen <wakeofluna@astralkey.nl>2024-02-15 18:08:19 +0100
committerEli Schwartz <eschwartz93@gmail.com>2024-02-16 01:32:26 -0500
commitabdb3afd7302147fac27551ada8cb91173194133 (patch)
tree491156fd4e575b40a78484e7e184c8d831ee21d0
parentc80ece2410064b396baedd2da0bb8484e102a5dd (diff)
downloadmeson-abdb3afd7302147fac27551ada8cb91173194133.tar.gz
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
-rw-r--r--mesonbuild/scripts/coverage.py2
1 files changed, 1 insertions, 1 deletions
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')