feat(ttl): Add traffic baseline to Script A, tune waits and unit args

Script A: the TRAFFIC-SETUP-STAGE placeholder is now a full loopback
round (ps, init, clear, show, start, stop, report) with 15 s settles, so
the run has a traffic baseline before the soak starts.

Script B: widen the post-clear settle from 3 s to 10 s.
Script C: drop -u 0 from stop/report so both switch units are covered.

Note: Script B still pins -u 0 while A and C now default to both units.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM
This commit is contained in:
2026-08-19 09:02:41 +08:00
co-authored by Claude Opus 5
parent afb7b1e283
commit 4088a828c6
3 changed files with 20 additions and 6 deletions
+17 -3
View File
@@ -94,10 +94,24 @@ wait prompt_sonic_root
;wait prompt_sonic_root ;wait prompt_sonic_root
;flushrecv ;flushrecv
; ========== TRAFFIC-SETUP-STAGE ========== ; ========== First Traffic Test ==========
;sendln "command" wait prompt_sonic_root
sendln "blanton_traffic_linespeed ps"
wait prompt_sonic_root
sendln "blanton_traffic_linespeed init"
wait prompt_sonic_root
sendln "blanton_traffic_linespeed clear"
wait prompt_sonic_root
pause 15
sendln "blanton_traffic_linespeed show"
wait prompt_sonic_root
sendln "blanton_traffic_linespeed start"
wait prompt_sonic_root
pause 15
sendln "blanton_traffic_linespeed stop"
wait prompt_sonic_root
sendln "blanton_traffic_linespeed report"
sendln ""
wait prompt_sonic_root wait prompt_sonic_root
messagebox 'Start Script B' 'Script A DONE' messagebox 'Start Script B' 'Script A DONE'
@@ -54,7 +54,7 @@ sendln "blanton_traffic_linespeed init -u 0"
wait prompt_sonic_root wait prompt_sonic_root
sendln "blanton_traffic_linespeed clear -u 0" sendln "blanton_traffic_linespeed clear -u 0"
wait prompt_sonic_root wait prompt_sonic_root
pause 3 pause 10
sendln "blanton_traffic_linespeed show -u 0" sendln "blanton_traffic_linespeed show -u 0"
wait prompt_sonic_root wait prompt_sonic_root
sendln "blanton_traffic_linespeed start -u 0" sendln "blanton_traffic_linespeed start -u 0"
@@ -33,9 +33,9 @@ sendln "cat ~/hammer/tools/log.stress_ssd"
; ========== CHECK Traffic counters ========== ; ========== CHECK Traffic counters ==========
wait prompt_sonic_root wait prompt_sonic_root
sendln "blanton_traffic_linespeed stop -u 0" sendln "blanton_traffic_linespeed stop"
wait prompt_sonic_root wait prompt_sonic_root
sendln "blanton_traffic_linespeed report -u 0" sendln "blanton_traffic_linespeed report"
messagebox 'GOOD JOB! Test Case DONE' 'teraterm' messagebox 'GOOD JOB! Test Case DONE' 'teraterm'