autotest: extract ids and message infos per-file, not on aggregate

Will allow for better diagnostics when something goes wrong
This commit is contained in:
Peter Barker 2022-04-05 19:52:51 +10:00 committed by Peter Barker
parent 00de10d796
commit 9f7ae1ee96

View File

@ -2121,18 +2121,21 @@ class AutoTest(ABC):
structure_lines = []
for f in structure_files:
structure_lines.extend(open(f).readlines())
defines = self.find_format_defines(structure_lines)
ids = {}
message_infos = []
for f in structure_files:
self.progress("structure file: %s" % f)
state_outside = 0
state_inside = 1
state = state_outside
defines = self.find_format_defines(structure_lines)
linestate_none = 45
linestate_within = 46
linestate = linestate_none
message_infos = []
for line in structure_lines:
for line in open(f).readlines():
# print("line: %s" % line)
if type(line) == bytes:
line = line.decode("utf-8")