File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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).
184184pushd %{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*"
186186popd
187187%endif # testcoverage
188188
@@ -213,7 +213,7 @@ VCS=`cat ${RPM_SOURCE_DIR}/mlops-agent.spec | grep "^VCS:" | sed "s|VCS:\\W*\\(.
213213pushd %{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*"
217217lcov -a unittest_base.info -a unittest_test.info -o unittest_total.info --ignore-errors empty
218218lcov -r unittest_total.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info --ignore-errors graph,unused
219219%else
You can’t perform that action at this time.
0 commit comments