Skip to content

Commit

Permalink
autotest: test_build_options.py: correct deps when enabling-in-turn
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Apr 15, 2023
1 parent 72a693e commit d0e3bbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/autotest/test_build_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,11 @@ def run_disable_in_turn(self):

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)
Expand Down

0 comments on commit d0e3bbe

Please sign in to comment.