fix: 解析器支持 Z2 'logic drawers' 输出格式

Cluster 正则从硬编码 'boards' 改为兼容 'boards|logic drawers',
修复 Palladium Z2 test_server 输出无法解析逻辑板信息的问题。
This commit is contained in:
Your Name
2026-07-14 16:05:12 +08:00
parent 83621cb213
commit f3145369c4
+2 -2
View File
@@ -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))