From d1a2eaab074c1a600b606d53f993713e90140ab7 Mon Sep 17 00:00:00 2001 From: Wanderingss <1624155937@qq.com> Date: Fri, 2 Oct 2026 15:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drun=5Fboot=5Ftest=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=A7=A3=E6=9E=90=EF=BC=9A=E8=84=9A=E6=9C=AC=E5=9C=A8?= =?UTF-8?q?test/host/=EF=BC=8C=E4=BB=93=E5=BA=93=E6=A0=B9=E9=9C=80?= =?UTF-8?q?=E4=B8=8A=E6=BA=AF=E4=B8=A4=E7=BA=A7=EF=BC=88=E5=8E=9FREPO=5FRO?= =?UTF-8?q?OT=E5=8F=AA=E5=88=B0test/=EF=BC=8C=E7=AB=AF=E5=8F=A3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=8E=E4=B8=B2=E5=8F=A3=E5=8A=A9=E6=89=8B=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=85=A8=E9=83=A8=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/host/run_boot_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/host/run_boot_test.py b/test/host/run_boot_test.py index 399d33a7..6aa53131 100644 --- a/test/host/run_boot_test.py +++ b/test/host/run_boot_test.py @@ -51,7 +51,9 @@ from datetime import datetime from pathlib import Path SCRIPT_DIR = Path(__file__).resolve().parent -REPO_ROOT = SCRIPT_DIR.parent +# 本脚本位于 test/host/,仓库根需上溯两级(2026-10 实机窗口修:原 .parent 只到 test/, +# 导致 .opencode/serial_config.json 与 tools/serial_tool 路径解析错误) +REPO_ROOT = SCRIPT_DIR.parent.parent SERIAL_TOOL = REPO_ROOT / "tools" / "serial_tool" / "serial_tool.py" CFG_FILE = REPO_ROOT / ".opencode" / "serial_config.json" DEFAULT_FLASH = REPO_ROOT / "MDK-ARM" / "download.bat"