Skip to content

Commit 01fce2b

Browse files
committed
Test 4, funnel array through env vars
1 parent 3d8dbe0 commit 01fce2b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -105,29 +105,29 @@ jobs:
105105
106106
REPO="$(basename "$GITHUB_REPOSITORY")"
107107
LIBRARY="$(basename ${{ matrix.libraries }} )"
108-
SERIALS=$(echo $(./py_checkusb.py --type ${LIBRARY} --list serial --json) | jq ".\"${LIBRARY}\"" --compact-output )
108+
SERIALS=$(echo $(./py_checkusb.py --type ${LIBRARY} --list serial --json) | jq ".\"${LIBRARY}\"[]" --compact-output )
109109
110110
echo "repo=$REPO" >> $GITHUB_ENV
111111
echo "library=$LIBRARy" >> $GITHUB_ENV
112112
echo "version=$TEST_VERSION" >> $GITHUB_ENV
113-
echo "serials=$SERIALS" >> $GITHUB_ENV
113+
#echo "serials=$SERIALS" >> $GITHUB_ENV
114114
115115
echo "Repo " $REPO
116116
echo "Libraries " $LIBRARY
117117
echo "Version " ${TEST_VERSION}
118-
echo "Serials " ${{ toJson($SERIALS) }}
118+
echo "Serials " $SERIALS
119119
120120
121121
# Build the test code with make and flash it to the board
122122
- name: Build
123123
run: |
124124
cd /opt/runner_support/
125125
126-
test=echo ${{ fromJson(env.serials) }}
127-
echo ${test}
128-
for serial in "${{ fromJson(env.serials) }}"; do
129-
echo "Serial: $serial"
130-
done
126+
# test=echo ${{ fromJson(env.serials) }}
127+
# echo ${test}
128+
# for serial in "${{ fromJson(env.serials) }}"; do
129+
# echo "Serial: $serial"
130+
# done
131131
132132
echo "BUILD"
133133

0 commit comments

Comments
 (0)