Skip to content

Commit

Permalink
coveralls: exclude files in extern from reporting
Browse files Browse the repository at this point in the history
The --exclude-directories function only prevents gcovr from searching
the given directory for raw coverage data; it does not remove anything
from the reported data.

But we want to exclude the content of `extern` from the *reporting* of
coverage, too. So add a corresponding `--exclude` option
  • Loading branch information
fingolfin committed May 18, 2020
1 parent 2e42a0d commit b5a0e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/ci-gather-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ GAPInput
if [[ -f gap-coveralls.json ]]
then
# generate kernel coverage reports by running gcov
python etc/ci-gcovr-coverage.py -r . --output c-coveralls.json --exclude-directories pkg/ --exclude-directories extern/
python etc/ci-gcovr-coverage.py -r . --output c-coveralls.json --exclude-directories pkg/ --exclude-directories extern/ --exclude extern

python etc/ci-coveralls-merge.py
fi
Expand Down

0 comments on commit b5a0e52

Please sign in to comment.