From c4ae7cf08607af026297c96581cd51ccd4521324 Mon Sep 17 00:00:00 2001 From: liaochuntao Date: Sun, 4 Feb 2024 10:23:35 +0800 Subject: [PATCH] fix:codecover scan package (#1327) --- test/codecov.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/test/codecov.sh b/test/codecov.sh index 368ba4832..92a6aa99c 100644 --- a/test/codecov.sh +++ b/test/codecov.sh @@ -91,6 +91,55 @@ for val in ${apiserver_pkg[@]}; do coverpkg="${coverpkg},${val}" fi done +for val in ${auth_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${cache_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${discover_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${config_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${store_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${plugin_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done +for val in ${common_pkg[@]}; do + if [ "${coverpkg}" == "" ]; then + coverpkg="${val}" + else + coverpkg="${coverpkg},${val}" + fi +done echo "${coverpkg}"