Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packaging/mlops-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export MLAGENT_BUILD_ROOT_PATH=$(pwd)/%{builddir}
# Capture initial zero coverage data. This will be merged with actual coverage data later.
# This is to prevent null gcda file error if the test is not performed (in case of gcov package generation mode).
pushd %{builddir}
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch --exclude "unittest*"
popd
%endif # testcoverage

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