Skip to content

Commit eb6af7d

Browse files
committed
Test 4, funnel array through env vars
1 parent a835f96 commit eb6af7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/hil-library-test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118
- name: Build
119119
run: |
120120
cd /opt/runner_support/
121-
readarray -t serials < <(echo $(./py_checkusb.py --type ${{ env.library }} --list serial --json) | jq ".\"${{ env.library }}\"[]" -r --compact-output)
122121
123122
hil=$(./py_checkusb.py --type ${{ env.library }} --json)
124123
readarray -t fqbns < <(echo $hil | jq ".\"${{ env.library }}\" | keys[]" -r --compact-output)
@@ -129,8 +128,11 @@ jobs:
129128
# loop over all serials
130129
cd ~/.arduino15/packages/Infineon/hardware/xmc/$TEST_VERSION/libraries/${{ env.library }} # change this
131130
131+
# loop over all fqbn in the library
132132
for fqbn in "${fqbns[@]}"; do
133133
echo "fqbn: $fqbn"
134+
readarray -t serials < <(echo $hil | jq ".\"${{ env.library }}\".\"${fqbn}" | keys[]" -r --compact-output)
135+
134136
echo "Serials: ${serials[@]}"
135137
# loop over all serials
136138
for serial in "${serials[@]}"; do

0 commit comments

Comments
 (0)