From 802ee4d467d1c9e28c6f1b96df935995e95c481f Mon Sep 17 00:00:00 2001 From: ETWen Date: Tue, 25 Aug 2026 15:55:05 +0800 Subject: [PATCH] feat(ttl): Fold bmc_poll.log into the USB archive Script C copies log/bmc_poll.log into /host/hw-eval/current/jobs/ before that directory is archived to USB, so the BMC sampling and I2C read-back results leave the DUT with the run they belong to rather than only existing in the Tera Term capture. The wait moves ahead of the getdate/sprintf2 block; those build strings without touching the terminal, so the prompt is still consumed exactly once before the copy is sent. Script A history updated under the existing V1.0.8 block -- that version is not tagged yet, so this is the same batch. 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 | 1 + src/Script_ABC_Blanton/3_Blanton_Script_C.ttl | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl index 706dfbb..5433105 100644 --- a/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl +++ b/src/Script_ABC_Blanton/1_Blanton_Script_A.ttl @@ -46,6 +46,7 @@ ; V1.0.8 2026-08-25 Blanton_Script/bmc_monitor.sh Add BMC I2C write/read-back pattern test ; ScriptB Re-enable bmc_monitor.sh start ; ScriptC Re-enable bmc_monitor.sh stop + cat bmc_poll.log +; ScriptC Copy bmc_poll.log into jobs/ before the USB archive ; ============================================================================= include "config.ttl" diff --git a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl index 7387859..d028e85 100644 --- a/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl +++ b/src/Script_ABC_Blanton/3_Blanton_Script_C.ttl @@ -109,11 +109,14 @@ wait prompt_sonic_root sendln "show uptime" ; ========== Copy Stress Log to USB ========== +wait prompt_sonic_root +sendln "cp ./Blanton_Script/log/bmc_poll.log /host/hw-eval/current/jobs/" + +wait prompt_sonic_root getdate ts_date "%Y%m%d" gettime ts_time "%H%M" sprintf2 usb_dst "/mnt/usb/jobs-%s_%s" ts_date ts_time sprintf2 cmd "cp -r /host/hw-eval/current/jobs/ %s" usb_dst -wait prompt_sonic_root sendln cmd ; ========== HW Test Session ==========