Snap for 13683512 from 44f3c6a33ef92a9748a23e9ec988d987cf0bb3c9 to 25Q4-release
Change-Id: I241f098574691d6ef702749528ca45653e13cc43
diff --git a/analyze_matrix/hals_for_release.py b/analyze_matrix/hals_for_release.py
index 593b2c8..3cd1e67 100755
--- a/analyze_matrix/hals_for_release.py
+++ b/analyze_matrix/hals_for_release.py
@@ -36,6 +36,7 @@
import json
import logging
import os
+import re
import subprocess
from collections.abc import Sequence
from typing import Any
@@ -180,6 +181,10 @@
matrices = dict()
for child in os.listdir(args.input):
file = os.path.join(args.input, child)
+ pattern = r"compatibility_matrix\.\d+\.xml$"
+ if re.search(pattern, file) is None:
+ logger.debug("Ignoring file %s", file)
+ continue
level, level_name = GetLevel(args.analyze_matrix, file), GetLevelName(args.analyze_matrix, file)
if level is None:
logger.debug("Ignoring file %s", file)