Browse Source

autotest: use LOG_STRUCTURE_FROM as key string (don't need library name)

zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
3a264e0a76
  1. 8
      Tools/autotest/common.py

8
Tools/autotest/common.py

@ -1717,18 +1717,14 @@ class AutoTest(ABC): @@ -1717,18 +1717,14 @@ class AutoTest(ABC):
continue
if state == state_outside:
if ("#define LOG_BASE_STRUCTURES" in line or
"#define LOG_STRUCTURE_FROM_DAL" in line or
"#define LOG_STRUCTURE_FROM_NAVEKF2" in line or
"#define LOG_STRUCTURE_FROM_NAVEKF3" in line or
"#define LOG_STRUCTURE_FROM_AHRS" in line):
re.match("#define LOG_STRUCTURE_FROM_.*", line)):
# self.progress("Moving inside")
state = state_inside
continue
if state == state_inside:
if linestate == linestate_none:
allowed_list = ['LOG_SBP_STRUCTURES',
'LOG_STRUCTURE_FROM_DAL',
'LOG_STRUCTURE_FROM_NAVEKF']
'LOG_STRUCTURE_FROM_']
allowed = False
for a in allowed_list:

Loading…
Cancel
Save