Skip to content

Commit 5d9ef53

Browse files
committed
Expand GCOVRFILTER
1 parent edcaec1 commit 5d9ef53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/lcov-jenkins-gcc-13.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ fi
168168

169169
if [ ! "$skipgcovroption" = "yes" ]; then
170170

171-
GCOVRFILTER=".*/$REPONAME/.*"
171+
GCOVRFILTER1="*/boost/$SELF/*"
172+
GCOVRFILTER2="*/$SELF/src/*"
172173
if [ -d "gcovr" ]; then
173174
rm -r gcovr
174175
fi
@@ -185,7 +186,7 @@ if [ ! "$skipgcovroption" = "yes" ]; then
185186
outputlocation="$BOOST_CI_SRC_FOLDER/gcovr"
186187

187188
# First pass, output json
188-
gcovr "${GCOVR_EXTRA_OPTIONS[@]}" --merge-mode-functions separate --sort uncovered-percent --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --filter "$GCOVRFILTER" --html --output "${outputlocation}/index.html" --json-summary-pretty --json-summary "${outputlocation}/summary.json" --json "${outputlocation}/coverage-raw.json"
189+
gcovr "${GCOVR_EXTRA_OPTIONS[@]}" --merge-mode-functions separate --sort uncovered-percent --html-title "$REPONAME" --merge-lines --exclude-unreachable-branches --exclude-throw-branches --exclude '.*/test/.*' --exclude '.*/extra/.*' --exclude '.*/example/.*' --exclude '.*/examples/.*' --filter "$GCOVRFILTER1" --filter "$GCOVRFILTER2" --html --output "${outputlocation}/index.html" --json-summary-pretty --json-summary "${outputlocation}/summary.json" --json "${outputlocation}/coverage-raw.json"
189190

190191
# Fix paths
191192
python3 "ci-automation/scripts/fix_paths.py" \

0 commit comments

Comments
 (0)