summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-03-25 07:56:10 (GMT)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-03-25 07:56:10 (GMT)
commitd8814b6c7fb8e037bd19bff6a2698f55ddb2b311 (patch)
tree8238c9ceb3fce68e618363b0604189b738aa7415
parent6aaa286970e59ed89bd69544f2ee10551f377cb6 (diff)
coverage: Fix removal of coverage data for files outside our source tree
And remove the plugin scanner from the coverage data.
-rw-r--r--coverage/lcov.mak5
1 files changed, 3 insertions, 2 deletions
diff --git a/coverage/lcov.mak b/coverage/lcov.mak
index 0ca9456..d28fde8 100644
--- a/coverage/lcov.mak
+++ b/coverage/lcov.mak
@@ -22,8 +22,9 @@ lcov-run:
lcov-report:
mkdir lcov
lcov --compat-libtool --directory . --capture --output-file lcov/lcov.info
- lcov -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
- lcov -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove
+ lcov --list-full-path -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
+ lcov --list-full-path -l lcov/lcov.info | grep "tests/check/" | cut -d: -f1 >> lcov/remove
+ lcov --list-full-path -l lcov/lcov.info | grep "docs/plugins/" | cut -d: -f1 >> lcov/remove
lcov -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
rm lcov/remove
mv lcov/lcov.cleaned.info lcov/lcov.info