From 79c751d5ee22bb22af85e8e827c9855f9f7051e7 Mon Sep 17 00:00:00 2001 From: husharp Date: Wed, 3 Apr 2024 16:05:16 +0800 Subject: [PATCH] fix Signed-off-by: husharp --- scripts/ci-subtask.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci-subtask.sh b/scripts/ci-subtask.sh index b9006dda5039..31185909122b 100755 --- a/scripts/ci-subtask.sh +++ b/scripts/ci-subtask.sh @@ -7,7 +7,7 @@ ROOT_PATH=../../ if [[ $2 -gt 9 ]]; then # run tools tests if [[ $2 -eq 10 ]]; then - cd ./tools && make ci-test-job && cd .. && cat ./covprofile >> covprofile || exit 1 + cd ./tools && make ci-test-job && cat covprofile >> ../covprofile && cd .. || exit 1 exit fi @@ -16,7 +16,7 @@ if [[ $2 -gt 9 ]]; then integrations_tasks=($(find "$integrations_dir" -mindepth 1 -maxdepth 1 -type d)) for t in "${integrations_tasks[@]}"; do if [[ "$t" = "$integrations_dir/client" && $2 -eq 11 ]]; then - cd ./client && make ci-test-job && cd .. && cat ./covprofile >> covprofile || exit 1 + cd ./client && make ci-test-job && cat covprofile >> ../covprofile && cd .. || exit 1 cd $integrations_dir && make ci-test-job test_name=client && cat ./client/covprofile >> "$ROOT_PATH/covprofile" || exit 1 elif [[ "$t" = "$integrations_dir/tso" && $2 -eq 12 ]]; then cd $integrations_dir && make ci-test-job test_name=tso && cat ./tso/covprofile >> "$ROOT_PATH/covprofile" || exit 1