feat(ttl): Wait for thermal sensors before taking baseline data

New utils/wait_init.ttl polls `show platform temperature` every 10 s
until it stops reporting "Thermal Not detected", so Script A does not
record a baseline while pmon is still coming up. Script A calls it right
after `show boot` and bumps to V1.0.3.

The include pointed at utils/wait_thermal.ttl while the file is
wait_init.ttl -- as Script A's own V1.0.3 history line says. Corrected;
Tera Term aborts the macro when an include cannot be opened, so this
would have stopped Script A at line 59 on the first run.

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-21 09:17:50 +08:00
co-authored by Claude Opus 5
parent 491e807cf8
commit 4ed283d0ca
2 changed files with 38 additions and 3 deletions
@@ -1,7 +1,7 @@
; =============================================================================
; Script A for Blanton
; Version : V1.0.2
; Date : 2026-08-17
; Version : V1.0.3
; Date : 2026-08-21
; Author : ETWen
; =============================================================================
; Version History:
@@ -14,7 +14,8 @@
; ScriptB Remove stress_hhmd, stress_pcie
; Blanton_Script Add blanton_traffic_linespeed.sh
; ScriptB/C Add Traffic Test
;
; V1.0.3 2026-08-21 utils/wait_init.ttl Created
; ScriptA Add Wait DUT Ready
; =============================================================================
include "config.ttl"
@@ -53,6 +54,10 @@ sendln cmd
wait prompt_sonic_root
sendln "show boot"
; ========== Wait DUT Init ==========
wait prompt_sonic_root
include "utils/wait_init.ttl"
; ========== BMC version ==========
wait prompt_sonic_root
sendln "bmc-manager run 'cat /etc/issue'"
@@ -0,0 +1,30 @@
; =============================================================================
; File : utils/wait_init.ttl
; Version : V1.0.0
; Date : 2026-08-21
; Author : ETWen
; =============================================================================
; Wait until "show platform temperature" is not "Thermal Not detected".
; Enter : prompt of the previous command is NOT consumed.
; Exit : "show platform temperature" is sent, prompt NOT consumed.
;
; Version History:
; V1.0.0 2026-08-21 Initial Version
; =============================================================================
wt_interval = 10
timeout = 30
wait prompt_sonic_root
:WAIT_THERMAL
sendln "show platform temperature"
wait "Thermal Not detected" prompt_sonic_root
if result = 2 then
goto THERMAL_OK
endif
wait prompt_sonic_root
pause wt_interval
goto WAIT_THERMAL
:THERMAL_OK
timeout = 0
sendln "show platform temperature"