Skip to content

Commit 926f160

Browse files
committed
autotest: add sanity check that greylisted items are not documented
.... and remove two messages that have now been documented
1 parent 02528d4 commit 926f160

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tools/autotest/vehicle_test_suite.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,6 @@ def LoggerDocumentation_greylist(self):
31243124
"SMVZ", # Sim-Volz
31253125

31263126
"SORC", # Soaring
3127-
"VAR", # soaring
31283127

31293128
"TCLR", # tempcal
31303129
"TEMP", # temperature sensor library
@@ -3141,7 +3140,6 @@ def LoggerDocumentation_greylist(self):
31413140
"GMB2", # sologimbal
31423141
"QBRK", # quadplane
31433142
"SURF", # surface-tracking
3144-
"ATUN", # Copter autotune
31453143
])
31463144

31473145
def LoggerDocumentation_whitelist(self):
@@ -3308,6 +3306,11 @@ def LoggerDocumentation(self):
33083306
if len(missing) > 0:
33093307
raise NotAchievedException("Documented messages (%s) not in code" % missing)
33103308

3309+
# ensure things in the whitelist are not documented:
3310+
for g in greylist:
3311+
if g in docco_ids:
3312+
raise NotAchievedException(f"greylisted ({g}) is actually documented")
3313+
33113314
def initialise_after_reboot_sitl(self):
33123315

33133316
# after reboot stream-rates may be zero. Request streams.

0 commit comments

Comments
 (0)