From b6312de8f0355c46c786378f7967003e6b533606 Mon Sep 17 00:00:00 2001 From: Yang Chiu Date: Tue, 20 Aug 2024 11:34:55 +0800 Subject: [PATCH] test Signed-off-by: Yang Chiu --- .github/workflows/qase-sync.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/qase-sync.yaml b/.github/workflows/qase-sync.yaml index b0a9e49d12..88bd5af33d 100644 --- a/.github/workflows/qase-sync.yaml +++ b/.github/workflows/qase-sync.yaml @@ -31,11 +31,11 @@ jobs: for file in "${files[@]}"; do echo "file = $file" if [[ "${file}" == *"/manual/"* ]] && [[ "${file}" != *"_index"* ]]; then - echo "test cases += ${file}" - test_cases+=("$file") + test_case=$(echo "${file#*manual/}") + test_cases+=("test_case") fi done - echo "test_case = ${test_cases[@]}" + echo "collected test cases: ${test_cases[@]}" echo "test_cases=${test_cases[@]}" >> $GITHUB_ENV echo "test_cases_length=${#test_cases[@]}" >> $GITHUB_ENV @@ -46,11 +46,10 @@ jobs: test_cases: ${{ env.test_cases }} run: | test_cases=(${test_cases}) - for file_path in "${test_cases[@]}"; do + for test_case in "${test_cases[@]}"; do - test_case_path=$(echo "${file_path#*manual/}") - echo "processing test case: ${test_case_path}" - IFS='/' read -ra arr <<< "$test_case_path" + echo "processing test case: ${test_case}" + IFS='/' read -ra arr <<< "${test_case}" parent_suite_id=""