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 59b28a8 commit 0864547
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/arduino_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,21 +302,17 @@ jobs:
- name: Flash
run: |
cd /opt/runner_support/
declare -a devicelist
declare -a serials
export HEXNAME=`tr ':' '.' <<<"${{ matrix.fqbn }}"`
declare -a devicelist
devicelist+=($(./py_checkusb.py --serial ${{ matrix.serials }} --batch))
for line in "${devicelist[@]}"; do
echo "Line: " $line
readarray -td, device <<<"$line"
echo "Device: " ${device[@]}
echo "Device one: " ${device[1]}
if [[ $device[1] =~ "$HEXNAME" ]]; then
echo "Device list: " $device
if [[ $line =~ $device[1] ]]; then
echo "Line: " $line
readarray -td, device <<<"$line"
echo "Device: " ${device[@]}
fi
done
Expand Down

0 comments on commit 0864547

Please sign in to comment.