From 14eb6fe832ea8ddd0c79a6f4e7c0f8dbd286b575 Mon Sep 17 00:00:00 2001 From: Ashish Sharma Date: Tue, 12 May 2026 18:44:40 +0000 Subject: [PATCH] (improv):restrict testcase regex to numeric or dash ACS rule headers -limit testcase header matching to " : -| : " -ignore verbose info/debug colon-formatted lines like PE_INFO and val_pgt_create -improve parsing of raw BSA/SBSA logs by avoiding false testcase matches Signed-off-by: Ashish Sharma ashish.sharma2@arm.com Change-Id: Ie061e60e46b862ed5dab85c31a328a92a02569ac --- common/log_parser/bsa/logs_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/log_parser/bsa/logs_to_json.py b/common/log_parser/bsa/logs_to_json.py index e9b534ec..d0c3b456 100644 --- a/common/log_parser/bsa/logs_to_json.py +++ b/common/log_parser/bsa/logs_to_json.py @@ -198,7 +198,7 @@ def main(input_files, output_file): continue # RULE line (main or subtest, determined by indentation) - rule_line = re.match(r'^([A-Za-z0-9_]+)\s*:\s*([^:]+?)\s*:\s*(.*)$', line) + rule_line = re.match(r'^([A-Za-z0-9_]+)\s*:\s*(-|\d+)\s*:\s*(.*)$', line) if rule_line: rule_id = rule_line.group(1).strip() test_index = (rule_line.group(2) or "").strip() or "-"