remove all cmd source files from coverage, make shanker happy

Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
This commit is contained in:
Shengqi Chen 2025-01-12 15:55:20 +08:00
parent 559f5705f6
commit ab8d1c2120
No known key found for this signature in database

View File

@ -230,7 +230,9 @@ jobs:
"${HOME}/go/bin/gocovmerge" profile.cov profile2.gcov \
"umlrootfs/home/${CUSER}/profile3.gcov" \
"umlrootfs/home/${CUSER}/profile4.gcov" \
profile5_*.gcov > profile-all.gcov
profile5_*.gcov > merged.gcov
# remove cmdline tools from coverage statistics
grep -v "cmd/.*\.go" merged.gcov > profile-all.gcov
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1