diff --git a/packaging/mlops-agent.spec b/packaging/mlops-agent.spec index 51e1f32..25e537e 100644 --- a/packaging/mlops-agent.spec +++ b/packaging/mlops-agent.spec @@ -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 @@ -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