#!/usr/bin/env python3 """run_boot_test.py - 一键开机日志抓取 + 校验(纯标准库;可移植 skill 版)。 调用串口助手(采集层 = 兄弟 skill serial-assistant 的 serial_tool.py,常驻 daemon, 子进程 CLI + JSON;解析顺序见 find_serial_tool): 1. open 串口 + clear 日志(本次运行独立代际) 2. 烧录(config "flash_cmd";未配置 = 跳过烧录,等人工复位板子) 2.5 固件身份戳:从待烧 hex(config "hex")里抠出固件戳(config "fw_marker", 默认 `fw build: