[tests] Fix printing summary after testing confs (#3371)

This commit is contained in:
Christophe De Wagter
2024-09-28 23:15:12 +02:00
committed by GitHub
parent 51e43fb67d
commit 4f1bd75203
3 changed files with 13 additions and 9 deletions
+4 -3
View File
@@ -12,11 +12,12 @@ def parse_log(log_file):
lines = f.readlines()
errors = []
conf = ''
conf = 'Unknown'
airframe = ''
module = ''
for line in lines:
lowerline = line.lower()
if 'Testing all aircrafts in conf: ' in line:
conf = line.split('Testing all aircrafts in conf: ')[1].strip()
#print(conf)
@@ -30,9 +31,9 @@ def parse_log(log_file):
airframe = line.strip()
if conf and airframe:
if 'error:' in line:
if ('error:' in lowerline) or ('failed:' in lowerline):
errors.append((conf, airframe, line.strip()))
if 'warning:' in line:
if 'warning:' in lowerline:
errors.append((conf, airframe, line.strip()))
return errors