From 7039d216012c8807fd90f4eb1e73da9ad3927210 Mon Sep 17 00:00:00 2001 From: Ashnaa Seth Date: Wed, 25 Mar 2026 20:11:32 +0000 Subject: [PATCH] genReport: fix DRC violation type parsing str.strip(chars) strips a character set, not a literal prefix. Use split() to correctly extract the violation type name. Signed-off-by: Ashnaa Seth Signed-off-by: ashnaaseth2325-oss --- flow/util/genReport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/util/genReport.py b/flow/util/genReport.py index 5134f4895b..4856deff09 100755 --- a/flow/util/genReport.py +++ b/flow/util/genReport.py @@ -295,7 +295,7 @@ def write_summary(): with open(drc_report_file, "r") as file_: for line_ in file_.readlines(): if "violation type:" in line_: - type_ = line_.strip("violation type:").strip() + type_ = line_.split("violation type:", 1)[1].strip() if type_ in d["drcs"].keys(): d["drcs"][type_] += 1 else: