Skip to content

Commit a848b8f

Browse files
committed
Improve error handling in Test 3 by capturing and displaying scan output on failure
1 parent eb3bd80 commit a848b8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646
nohup JLinkRemoteServer -select usb=$serial -device STM32F103RE -endian little -speed 4000 -if swd > remote_server.log 2>&1 &
4747
sleep 3
4848
bmlab-scan --network 127.0.0.1/32 | tee scan3.txt
49-
status=$?
5049
cat remote_server.log
5150
grep -q "Target: *STM32F103RE" scan3.txt
5251
grep -q "Serial: *$serial" scan3.txt
53-
exit $status
54-
52+
if [ $? -ne 0 ]; then
53+
cat scan3.txt
54+
fi
5555
5656
- name: Test 4 — bmlab-scan --network 127.0.0.1/32 -p jlink
5757
run: |

0 commit comments

Comments
 (0)