Skip to content

Commit 2794abd

Browse files
authored
Update manual test. (#684)
* Update manual test. Signed-off-by: ZePan110 <[email protected]> * Update script folder. Signed-off-by: ZePan110 <[email protected]> * Change Matching Rules Signed-off-by: ZePan110 <[email protected]> --------- Signed-off-by: ZePan110 <[email protected]>
1 parent 0f2c2b1 commit 2794abd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/_run-docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
set -x
5656
service_l=$(echo ${{ inputs.service }} | tr '[:upper:]' '[:lower:]')
5757
cd ${{ github.workspace }}/tests
58-
test_cases=$(find . -type f -name "test_${service_l}*.sh" -print | cut -d/ -f2 | jq -R '.' | jq -sc '.')
58+
test_cases=$(find . -type f -name "test_${service_l}*.sh" -print | jq -R '.' | jq -sc '.')
5959
echo "test_cases=$test_cases" >> $GITHUB_OUTPUT
6060
6161
run-test:
@@ -92,7 +92,7 @@ jobs:
9292
test_case: ${{ matrix.test_case }}
9393
run: |
9494
cd ${{ github.workspace }}/tests
95-
service=$(echo "${test_case}" | sed 's/test_\(.*\)\.sh/\1/')
95+
service=$(echo "${test_case}" | cut -d'_' -f2- |cut -d'.' -f1)
9696
echo "service=${service}" >> $GITHUB_ENV
9797
if [ -f ${test_case} ]; then timeout 30m bash ${test_case}; else echo "Test script {${test_case}} not found, skip test!"; fi
9898

0 commit comments

Comments
 (0)