From d1f02e049d2ddab41c382a4f7a2cd41a56b7e8fc Mon Sep 17 00:00:00 2001 From: Jaeyun Jung Date: Wed, 28 Jan 2026 15:49:12 +0900 Subject: [PATCH] [Build] unittest with gcov option Fix build error when updating lcov, run unittest when gcov option is enabled. Signed-off-by: Jaeyun Jung --- packaging/mlops-agent.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/mlops-agent.spec b/packaging/mlops-agent.spec index 7b36195..4929351 100644 --- a/packaging/mlops-agent.spec +++ b/packaging/mlops-agent.spec @@ -186,8 +186,7 @@ lcov -i -c -o unittest_base.info -d . -b $(pwd) --ignore-errors mismatch --exclu popd %endif # testcoverage -# If gcov package generation is enabled, pass the test from GBS. -%if 0%{?unit_test} && !0%{?gcov} +%if 0%{?unit_test} bash %{test_script} ./tests/daemon/unittest_ml_agent bash %{test_script} ./tests/daemon/unittest_service_db bash %{test_script} ./tests/daemon/unittest_gdbus_util