Skip to content

Commit 3256398

Browse files
authored
chore(fix): modify lcov command to include unused block ignore
Updated lcov command to ignore unused blocks in coverage report.
1 parent 8ced40d commit 3256398

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cmake-multi-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
cd ${{ steps.strings.outputs.build-output-dir }}
101101
GCC_VERSION=`gcc --version | head -n1 | awk '{print $3}'`
102102
GCC_MAJOR_VERSION=$(echo $GCC_VERSION | cut -d. -f1,1)
103-
lcov --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch --gcov-tool /usr/bin/gcov-${GCC_MAJOR_VERSION} -d . -c -o picasso.info
103+
lcov --rc geninfo_unexecuted_blocks=1 --ignore-errors mismatch,unused --gcov-tool /usr/bin/gcov-${GCC_MAJOR_VERSION} -d . -c -o picasso.info
104104
lcov --remove picasso.info -o picasso.info '/usr/*' '*/proj/*' '*/unit_tests/*' '*/third_party/*'
105105
106106
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)