From f3145369c49455599a0ba0b17d5da77f03a8857a Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 14 Jul 2026 16:05:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E6=9E=90=E5=99=A8=E6=94=AF?= =?UTF-8?q?=E6=8C=81=20Z2=20'logic=20drawers'=20=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cluster 正则从硬编码 'boards' 改为兼容 'boards|logic drawers', 修复 Palladium Z2 test_server 输出无法解析逻辑板信息的问题。 --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 35a6192..5e2f5e3 100644 --- a/app.py +++ b/app.py @@ -206,9 +206,9 @@ def parse_test_server_output(raw_text: str) -> dict: }) continue - # Cluster 头: "Cluster 0 has 6 boards CCD: ONLINE" + # Cluster 头: "Cluster 0 has 6 boards CCD: ONLINE" (Z1) 或 "Cluster 0 has 6 logic drawers CCD: ONLINE" (Z2) cluster_match = re.match( - r"Cluster\s+(\d+)\s+has\s+(\d+)\s+boards\s+CCD:\s*(\w+)", line + r"Cluster\s+(\d+)\s+has\s+(\d+)\s+(?:boards?|logic\s+drawers?)\s+CCD:\s*(\w+)", line ) if cluster_match and result["racks"]: current_cluster = int(cluster_match.group(1))