From 4088a828c6bb1c8be73e039ef424d5f9789b66f0 Mon Sep 17 00:00:00 2001 From: ETWen Date: Wed, 19 Aug 2026 09:02:41 +0800 Subject: [PATCH] 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) Claude-Session: https://claude.ai/code/session_014RetWKFZFG1ZHcitQAyhwM --- src/Script_ABC_Blanton/1_Blanton_Script_A.ttl | 20 ++++++++++++++++--- src/Script_ABC_Blanton/2_Blanton_Script_B.ttl | 2 +- src/Script_ABC_Blanton/3_Blanton_Script_C.ttl | 4 ++-- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl index ed09795..009262f 100644 --- a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl +++ b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl @@ -94,10 +94,24 @@ wait prompt_sonic_root ;wait prompt_sonic_root ;flushrecv -; ========== TRAFFIC-SETUP-STAGE ========== - ;sendln "command" +; ========== First Traffic Test ========== +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 messagebox 'Start Script B' 'Script A DONE' \ No newline at end of file diff --git a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl index a60b710..f0374bd 100644 --- a/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl +++ b/src/Script_ABC_Blanton/2_Blanton_Script_B.ttl @@ -54,7 +54,7 @@ sendln "blanton_traffic_linespeed init -u 0" wait prompt_sonic_root sendln "blanton_traffic_linespeed clear -u 0" wait prompt_sonic_root -pause 3 +pause 10 sendln "blanton_traffic_linespeed show -u 0" wait prompt_sonic_root sendln "blanton_traffic_linespeed start -u 0" diff --git a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl index 62f9a75..6ce7df8 100644 --- a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl +++ b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl @@ -33,9 +33,9 @@ sendln "cat ~/hammer/tools/log.stress_ssd" ; ========== CHECK Traffic counters ========== wait prompt_sonic_root -sendln "blanton_traffic_linespeed stop -u 0" +sendln "blanton_traffic_linespeed stop" wait prompt_sonic_root -sendln "blanton_traffic_linespeed report -u 0" +sendln "blanton_traffic_linespeed report" messagebox 'GOOD JOB! Test Case DONE' 'teraterm' \ No newline at end of file