AnalyzeBuildLogs(): only analyze one file at a time

Will be used in a follow-up commit to simplify analysis of log files and
HTML file printing.
This commit is contained in:
Robert Schmidt
2025-08-14 14:55:04 +02:00
parent 089059e10a
commit 81a79980dd
2 changed files with 31 additions and 29 deletions
+7 -6
View File
@@ -412,12 +412,13 @@ class Cluster:
self.cmd.close()
# Analyze the logs
collectInfo = cls_containerize.AnalyzeBuildLogs(log_files, status)
for img in collectInfo:
for f in collectInfo[img]:
status = status and collectInfo[img][f]['status']
if not status:
logging.debug(collectInfo)
collectInfo = {}
for image, lf in log_files:
files = {}
idx = 'Target Image Creation'
files[idx] = cls_containerize.AnalyzeBuildLogs(image, lf)
status = status and files[idx]['status']
collectInfo[image] = files
if status:
logging.info('\u001B[1m Building OAI Image(s) Pass\u001B[0m')