Skip to content

Commit 7356ae6

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packaging/machine-learning-api.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ export MLAPI_BUILD_ROOT_PATH=$(pwd)/build
418418
# Capture initial zero coverage data. This will be merged with actual coverage data later.
419419
# This is to prevent null gcda file error if the test is not performed (in case of gcov package generation mode).
420420
pushd build
421-
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch
421+
lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch --exclude "unittest*"
422422
popd
423423
%endif # testcoverage
424424

@@ -465,7 +465,7 @@ VCS=`cat ${RPM_SOURCE_DIR}/machine-learning-api.spec | grep "^VCS:" | sed "s|VCS
465465
pushd build
466466
# Set different lcov options for Tizen/lcov versions.
467467
%if 0%{tizen_version_major} >= 9
468-
lcov -t 'ML API unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty
468+
lcov -t 'ML API unittest coverage' -o unittest_test.info -c -d . -b $(pwd) --ignore-errors mismatch,empty --exclude "unittest*"
469469
lcov -a unittest_base.info -a unittest_test.info -o unittest_total.info --ignore-errors empty
470470
lcov -r unittest_total.info "*/tests/*" "*/meson*/*" "*/*@sha/*" "*/*.so.p/*" "*/*tizen*" "*/*-dbus.c" "/usr/*" -o unittest-filtered.info --ignore-errors graph,unused
471471
%else

0 commit comments

Comments
 (0)