Skip to content

Commit 1c0355f

Browse files
committed
Update test-flash workflow for improved device detection and flashing process
1 parent 0b1653b commit 1c0355f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test-flash.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@ jobs:
102102
vnet-base: ${{ env.VNET_BASE }}
103103
vnet-mask: ${{ env.VNET_MASK }}
104104

105+
- name: Test 3.1 — Erase three devices before flashing
106+
run: |
107+
. .venv/bin/activate
108+
bmlab-erase --ip $VNET_BASE.100 $VNET_BASE.101 $VNET_BASE.102 --mcu STM32F103RE | tee erase-before-flash.txt
109+
110+
success_count=$(grep -c "Success" erase-before-flash.txt || echo 0)
111+
112+
if [ "$success_count" -ne 3 ]; then
113+
echo "Test 3.1 failed: expected 3 successful erases, found $success_count"
114+
cat erase-before-flash.txt
115+
exit 1
116+
fi
117+
105118
- name: Test 4 — Flash three devices in parallel
106119
run: |
107120
. .venv/bin/activate

0 commit comments

Comments
 (0)