Skip to content

Commit

Permalink
Fix manual test issue (#768)
Browse files Browse the repository at this point in the history
* Add debug output

Signed-off-by: ZePan110 <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Bug fix.

Signed-off-by: ZePan110 <[email protected]>

* Remove comment.

Signed-off-by: ZePan110 <[email protected]>

---------

Signed-off-by: ZePan110 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
ZePan110 and pre-commit-ci[bot] authored Oct 10, 2024
1 parent 028f47a commit ceba539
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/_run-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,20 @@ jobs:
id: test-case-matrix
run: |
set -x
run_matrix="{\"include\":["
run_matrix=$(jq -n '{include: []}')
service_l=$(echo ${{ inputs.service }} | tr '[:upper:]' '[:lower:]')
cd ${{ github.workspace }}/tests
# test_cases=$(find . -type f -name "test_${service_l}*.sh" -print | jq -R '.' | jq -sc '.')
test_cases=$(find . -type f -name "test_${service_l}*.sh")
for script in $test_cases; do
echo $script
if echo "$script" | grep -q "on"; then
hardware=$(echo $script | cut -d'/' -f3 | cut -d'.' -f1 | awk -F'on_' '{print $2}')
run_matrix="${run_matrix}{\"test_case\":\"${script}\",\"hardware\":\"${hardware}\"},"
else
run_matrix="${run_matrix}{\"test_case\":\"${script}\",\"hardware\":\"intel_cpu\"},"
hardware="intel_cpu"
fi
run_matrix=$(echo $run_matrix | jq --arg script "$script" --arg hardware "$hardware" '.include += [{"test_case": $script, "hardware": $hardware}]')
done
run_matrix=$(echo "$run_matrix" | sed 's/,$//')
run_matrix=$run_matrix"]}"
echo "run_matrix=${run_matrix}"
run_matrix=$(echo $run_matrix | jq -c .)
echo "run_matrix=${run_matrix}" >> $GITHUB_OUTPUT
run-test:
Expand Down

0 comments on commit ceba539

Please sign in to comment.