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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user