From ac663c2d3ad07be84c0f0e9e21c598463a33c461 Mon Sep 17 00:00:00 2001 From: Tomasz Tyzenhauz Date: Mon, 6 May 2024 14:48:37 +0200 Subject: [PATCH] scripts: Add lcov as coverage tool in run_ut script Twister starts use gcov tool by default. Switch back to lcov Signed-off-by: Tomasz Tyzenhauz --- scripts/ci/run_ut.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci/run_ut.sh b/scripts/ci/run_ut.sh index 3706421274..1ea7d43466 100755 --- a/scripts/ci/run_ut.sh +++ b/scripts/ci/run_ut.sh @@ -139,7 +139,7 @@ function run_ut () echo "[INFO]: Run unit tests not executed" return 0 fi - run_twister --platform native_posix --platform unit_testing --coverage --enable-ubsan --enable-lsan --enable-asan -T $(get_testcase_root $(realpath ${SIDEWALK_SDK_DIR}/tests/unit_tests)) + run_twister --platform native_posix --platform unit_testing --coverage --coverage-tool lcov --enable-ubsan --enable-lsan --enable-asan -T $(get_testcase_root $(realpath ${SIDEWALK_SDK_DIR}/tests/unit_tests)) status=$? echo "[INFO]: Remove files from coverage that are not under test and regenerate html report" lcov -q --remove "${CURRENT_DIR}/twister-out/coverage.info" "${LCOV_EXCLUDE[@]}" -o "${CURRENT_DIR}/twister-out/new_coverage.info"