autotest: test_build_options.py: correct deps when enabling-in-turn

This commit is contained in:
Peter Barker 2023-04-15 12:16:14 +10:00 committed by Peter Barker
parent 72a693e68e
commit d0e3bbe9e9

View File

@ -316,10 +316,11 @@ class TestBuildOptions(object):
def run_enable_in_turn(self):
options = self.get_build_options_from_ardupilot_tree()
if self.match_glob is not None:
options = list(filter(lambda x : fnmatch.fnmatch(x.define, self.match_glob), options))
count = 1
for feature in options:
if self.match_glob is not None:
if not fnmatch.fnmatch(feature.define, self.match_glob):
continue
self.progress("Enabling feature %s(%s) (%u/%u)" %
(feature.label, feature.define, count, len(options)))
self.test_enable_feature(feature, options)