Skip to content

Commit

Permalink
tmt t lint should also try to cover adjust rules
Browse files Browse the repository at this point in the history
Fix [issue#898](#898)

Signed-off-by: Vector Li <[email protected]>
  • Loading branch information
Vector Li committed Jul 11, 2022
1 parent 17c9f6e commit f233b2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tmt/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ def export(self, format_='yaml', keys=None):
def lint_keys(self, additional_keys):
""" Return list of invalid keys used, empty when all good """
known_keys = additional_keys + self._keys
return [key for key in self.node.get().keys() if key not in known_keys]
input_keys = list(self.node.get().keys())
prop_adjust = self.node.get('adjust')
if prop_adjust is not None:
input_keys.extend([key for element in prop_adjust for key in element.keys()])
return [key for key in input_keys if key not in known_keys]

def _lint_summary(self):
""" Lint summary attribute """
Expand Down

0 comments on commit f233b2a

Please sign in to comment.