coverage.sh: Inline exclusion patterns (for upcoming change)

This commit is contained in:
Sebastian Pipping 2022-08-21 19:18:16 +02:00
parent 0a0418faf8
commit 230b490cbf

View file

@ -230,9 +230,12 @@ _merge_coverage_info() {
_clean_coverage_info() {
local coverage_dir="$1"
local dir
for dir in CMakeFiles examples tests ; do
local pattern="*/${dir}/*"
local pattern
for pattern in \
'*/CMakeFiles/*' \
'*/examples/*' \
'*/tests/*' \
; do
(
set -x
lcov -q -o "${coverage_dir}/${coverage_info}" -r "${coverage_dir}/${coverage_info}" "${pattern}"