测试闭环补 [ERR] 禁项:DBG_ERROR 前缀为 [ERR] 且不匹配 ERROR 子串,此前错误日志漏检

This commit is contained in:
2026-09-21 03:03:37 +08:00
parent 5d386cedfb
commit 4114416bf4
3 changed files with 21 additions and 5 deletions
+2 -2
View File
@@ -23,7 +23,7 @@
[--port COM7] [--baud-rate 115200] [--settle-ms 8000] [--max-wait-ms 30000]
[--flash-cmd MDK-ARM\\download.bat] [--flash-timeout 180]
[--required "App init OK;Network Init;net init: OK"]
[--forbidden "FAIL;ERROR;HardFault"]
[--forbidden "FAIL;ERROR;HardFault;[ERR]"]
[--out-dir <目录>] [--show-tail-lines 15]
--port 缺省取 .opencode/serial_config.json 的 portName(单一配置源)
@@ -51,7 +51,7 @@ CFG_FILE = REPO_ROOT / ".opencode" / "serial_config.json"
DEFAULT_FLASH = REPO_ROOT / "MDK-ARM" / "download.bat"
REQUIRED_DEFAULT = "App init OK;Network Init;net init: OK"
FORBIDDEN_DEFAULT = "FAIL;ERROR;HardFault"
FORBIDDEN_DEFAULT = "FAIL;ERROR;HardFault;[ERR]"
def _cli(cmd_args, timeout):