From bd77fa1cf6c7afe90fa0a0e344d18640753e225a Mon Sep 17 00:00:00 2001
From: jikai <jikai11@huawei.com>
Date: Tue, 12 Dec 2023 14:47:40 +0800
Subject: [PATCH 173/181] remove build and test in coverage

Signed-off-by: jikai <jikai11@huawei.com>
---
 CI/generate_gcov.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CI/generate_gcov.sh b/CI/generate_gcov.sh
index 364af65c..2f3228df 100755
--- a/CI/generate_gcov.sh
+++ b/CI/generate_gcov.sh
@@ -31,8 +31,8 @@ ctest
 lcov --directory . --capture --output-file coverage.info
 # Remove std/build files
 lcov --remove coverage.info '/usr/*' -o coverage.info
-lcov --remove coverage.info 'build/*' -o coverage.info
-lcov --remove coverage.info 'test/*' -o coverage.info
+lcov --remove coverage.info "$ISULAD_SRC_PATH/build/*"
+lcov --remove coverage.info "$ISULAD_SRC_PATH/test/*"
 
 # Generate html
 genhtml --ignore-errors source -o $GCOV_RESULT_PATH/coverage coverage.info
-- 
2.42.0

