Skip to content

Commit d41aee4

Browse files
committed
[Build] coverage error
Fix line coverage error after upgrading lcov. Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
1 parent 7b658b7 commit d41aee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/mlops-agent.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export MLAGENT_BUILD_ROOT_PATH=$(pwd)/%{builddir}
182182
# Capture initial zero coverage data. This will be merged with actual coverage data later.
183183
# This is to prevent null gcda file error if the test is not performed (in case of gcov package generation mode).
184184
pushd %{builddir}
185-
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch
185+
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch --exclude "unittest*"
186186
popd
187187
%endif # testcoverage
188188

@@ -213,7 +213,7 @@ VCS=`cat ${RPM_SOURCE_DIR}/mlops-agent.spec | grep "^VCS:" | sed "s|VCS:\\W*\\(.
213213
pushd %{builddir}
214214
# Set different lcov options for Tizen/lcov versions.
215215
%if 0%{tizen_version_major} >= 9
216-
lcov -t 'ML-Agent unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty
216+
lcov -t 'ML-Agent unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty --exclude "unittest*"
217217
lcov -a unittest_base.info -a unittest_test.info -o unittest_total.info --ignore-errors empty
218218
lcov -r unittest_total.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info --ignore-errors graph,unused
219219
%else

0 commit comments

Comments
 (0)