Skip to content

Commit

Permalink
Update src/python_testing/modebase_cluster_check.py
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
tersal and andy31415 authored Jan 14, 2025
1 parent 36f556d commit 488c03a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/python_testing/modebase_cluster_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ def check_tags_in_lists(self, supported_modes, required_tags=None):

# Check if is tag is common, derived or mfg.
is_mfg = (START_MFGTAGS_RANGE <= tag.value <= END_MFGTAGS_RANGE)
if (tag.value not in self.mode_tags and
not is_mfg):
if not (is_mfg or tag.value in self.mode_tags):
asserts.fail("Mode tag value is not a common, derived or vendor tag.")

# Confirm if tag is common or derived.
Expand Down

0 comments on commit 488c03a

Please sign in to comment.