Skip to content

Commit

Permalink
Test3, fully parameterized
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafFilies committed Oct 4, 2024
1 parent 5e29a2d commit ad3e0fd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,16 @@ jobs:
echo "Build HEX name: " $HEXNAME
echo "Port Serial Num: " ${{ needs.setup.outputs.serials_hil }}
for serial in ${{ needs.setup.outputs.serials_hil }};
do
devicelist+=($(./py_checkusb.py --serial $serial --batch))
for serial in ${{ needs.setup.outputs.serials_hil }}; do
line=$(./py_checkusb.py --serial $serial --batch)
if [[ $line =~ "$HEXNAME"]]; then
devicelist+=($(./py_checkusb.py --serial $serial --batch))
fi
done;
for line in "${devicelist[@]}";
do
readarray -td, device <<<"$line"
if [ "${device[1]} -ne $HEXNAME ]; then
break
fi
export SERIAL_NUM=${device[0]}
export HEXNAME=${device[1]}
export DEVICE=${device[2]}
Expand Down

0 comments on commit ad3e0fd

Please sign in to comment.