Skip to content

Commit 39d95fb

Browse files
committed
Increase timeout for RTT tests and reduce sleep duration after stopping RTT for improved performance
1 parent 6e4a9e3 commit 39d95fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test-rtt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
- name: Test 4 — RTT single device by IP
137137
run: |
138138
. .venv/bin/activate
139-
timeout 5 bmlab-rtt --ip $VNET_BASE.100 --timeout 3 | tee rtt-ip1.txt || true
139+
timeout 15 bmlab-rtt --ip $VNET_BASE.100 --timeout 3 | tee rtt-ip1.txt || true
140140
141141
if [ ! -s rtt-ip1.txt ]; then
142142
echo "Test 4 failed: no RTT output"
@@ -148,7 +148,7 @@ jobs:
148148
run: |
149149
. .venv/bin/activate
150150
mkdir -p rtt_logs_ip
151-
timeout 10 bmlab-rtt --ip $VNET_BASE.100 $VNET_BASE.101 $VNET_BASE.102 --output-dir rtt_logs_ip --timeout 3 || true
151+
timeout 15 bmlab-rtt --ip $VNET_BASE.100 $VNET_BASE.101 $VNET_BASE.102 --output-dir rtt_logs_ip --timeout 3 || true
152152
153153
# Check that log files were created for each IP
154154
for ip in 100 101 102; do

src/bmlab_toolkit/rtt_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def rtt_single_device(serial, ip_addr, mcu, programmer_type, reset, timeout, msg
236236
prog.stop_rtt()
237237
prog.disconnect_target()
238238
# Give JLink Remote Server time to release connection
239-
time.sleep(5.0)
239+
time.sleep(0.5)
240240

241241
if not output_file:
242242
print("\nDone.")

0 commit comments

Comments
 (0)