aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2018-12-05 13:32:15 -0800
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-16 20:24:05 +0200
commit61d462706af4998403f854b5caaa8bb3a7741700 (patch)
tree6e56fcb99cb1008a248ef3c6af061e434dc831f1 /mesonbuild/scripts
parentcb45e9e8361f1d8275ca8acd4c827389c0f0fe98 (diff)
downloadmeson-61d462706af4998403f854b5caaa8bb3a7741700.zip
meson-61d462706af4998403f854b5caaa8bb3a7741700.tar.gz
meson-61d462706af4998403f854b5caaa8bb3a7741700.tar.bz2
coverage: Also remove source_root prefixes
The code our projects care about verifying coverage for mostly lives in the source_root with the exception of the generated source files in build_root. This change cleans up the output so we don't have prefixed paths on our source files anymore.
Diffstat (limited to 'mesonbuild/scripts')
-rw-r--r--mesonbuild/scripts/coverage.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py
index 6d7e707..0e203f9 100644
--- a/mesonbuild/scripts/coverage.py
+++ b/mesonbuild/scripts/coverage.py
@@ -93,6 +93,7 @@ def coverage(outputs, source_root, subproject_root, build_root, log_dir):
'--output-file', covinfo])
subprocess.check_call([genhtml_exe,
'--prefix', build_root,
+ '--prefix', source_root,
'--output-directory', htmloutdir,
'--title', 'Code coverage',
'--legend',