File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
55
set -x
56
56
service_l=$(echo ${{ inputs.service }} | tr '[:upper:]' '[:lower:]')
57
57
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 '.')
59
59
echo "test_cases=$test_cases" >> $GITHUB_OUTPUT
60
60
61
61
run-test :
92
92
test_case : ${{ matrix.test_case }}
93
93
run : |
94
94
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 )
96
96
echo "service=${service}" >> $GITHUB_ENV
97
97
if [ -f ${test_case} ]; then timeout 30m bash ${test_case}; else echo "Test script {${test_case}} not found, skip test!"; fi
98
98
You can’t perform that action at this time.
0 commit comments