Skip to content

Commit 2f4f089

Browse files
committed
Refactor CI workflows: remove test.yml and update test-flash.yml for parallel device flashing
1 parent 66d595e commit 2f4f089

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

.github/workflows/test-flash.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -97,41 +97,41 @@ jobs:
9797
exit 1
9898
fi
9999
100-
- name: Test 1 — Flash single device by IP
101-
run: |
102-
. .venv/bin/activate
103-
bmlab-flash .github/workflows/fw.bin --ip $VNET_BASE.100 --mcu STM32F103RE | tee flash1.txt
100+
# - name: Test 1 — Flash single device by IP
101+
# run: |
102+
# . .venv/bin/activate
103+
# bmlab-flash .github/workflows/fw.bin --ip $VNET_BASE.100 --mcu STM32F103RE | tee flash1.txt
104104

105-
if ! grep -q "Success" flash1.txt; then
106-
echo "Test 1 failed: flash not successful"
107-
cat flash1.txt
108-
exit 1
109-
fi
105+
# if ! grep -q "Success" flash1.txt; then
106+
# echo "Test 1 failed: flash not successful"
107+
# cat flash1.txt
108+
# exit 1
109+
# fi
110110

111-
- name: Test 2 — Flash two devices in parallel
112-
run: |
113-
. .venv/bin/activate
114-
bmlab-flash .github/workflows/fw.bin --ip $VNET_BASE.100 $VNET_BASE.101 --mcu STM32F103RE | tee flash2.txt
111+
# - name: Test 2 — Flash two devices in parallel
112+
# run: |
113+
# . .venv/bin/activate
114+
# bmlab-flash .github/workflows/fw.bin --ip $VNET_BASE.100 $VNET_BASE.101 --mcu STM32F103RE | tee flash2.txt
115115

116-
success_count=$(grep -c "Success" flash2.txt || echo 0)
116+
# success_count=$(grep -c "Success" flash2.txt || echo 0)
117117

118-
if [ "$success_count" -ne 2 ]; then
119-
echo "Test 2 failed: expected 2 successful flashes, found $success_count"
120-
cat flash2.txt
121-
exit 1
122-
fi
118+
# if [ "$success_count" -ne 2 ]; then
119+
# echo "Test 2 failed: expected 2 successful flashes, found $success_count"
120+
# cat flash2.txt
121+
# exit 1
122+
# fi
123123

124-
if ! grep -q "$VNET_BASE.100" flash2.txt; then
125-
echo "Test 2 failed: no result for $VNET_BASE.100"
126-
cat flash2.txt
127-
exit 1
128-
fi
124+
# if ! grep -q "$VNET_BASE.100" flash2.txt; then
125+
# echo "Test 2 failed: no result for $VNET_BASE.100"
126+
# cat flash2.txt
127+
# exit 1
128+
# fi
129129

130-
if ! grep -q "$VNET_BASE.101" flash2.txt; then
131-
echo "Test 2 failed: no result for $VNET_BASE.101"
132-
cat flash2.txt
133-
exit 1
134-
fi
130+
# if ! grep -q "$VNET_BASE.101" flash2.txt; then
131+
# echo "Test 2 failed: no result for $VNET_BASE.101"
132+
# cat flash2.txt
133+
# exit 1
134+
# fi
135135

136136
- name: Test 3 — Flash three devices in parallel
137137
run: |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
VNET_BASE: 192.168.3
1111
VNET_MASK: 24
1212
jobs:
13-
test-build:
13+
test-scan:
1414
runs-on: self-hosted
1515

1616
steps:

0 commit comments

Comments
 (0)