mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
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:
parent
00de10d796
commit
9f7ae1ee96
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user