Skip to content

Commit b8d0c57

Browse files
committed
Enhance test workflow by capturing JLinkRemoteServer logs and ensuring proper exit status for network scan tests
1 parent 48611a1 commit b8d0c57

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ jobs:
4242
nohup JLinkRemoteServer -select usb=771850347 -device STM32F103RE -endian little -speed 4000 -if swd > remote_server.log 2>&1 &
4343
sleep 3
4444
bmlab-scan --network 127.0.0.1/32 | tee scan3.txt
45+
status=$?
46+
cat remote_server.log
4547
grep -q "Target: *STM32F103RE" scan3.txt
4648
grep -q "Serial: *771850347" scan3.txt
49+
exit $status
50+
4751
4852
- name: Test 4 — bmlab-scan --network 127.0.0.1/32 -p jlink
4953
run: |

JLinkRemoteServer.log

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SEGGER J-Link Remote Server V8.48 LogFile
2+
Logging started @ 2025-12-23 08:00
3+
00000000 - SERVER (0x0015 bytes): Remote Server started
4+
00000001 - SERVER (0x0015 bytes): TLV Protocol: V1.0.0
5+
00000056 - SERVER (0x0026 bytes): Connected to J-Link with S/N 771850347
6+
00000057 - SERVER (0x0022 bytes): Waiting for client connections...

0 commit comments

Comments
 (0)