Skip to content

Commit

Permalink
rebase onto main
Browse files Browse the repository at this point in the history
  • Loading branch information
mtache committed Oct 27, 2023
1 parent 6aed48e commit dedf633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion anta/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ async def main(
coros = []

for device, test_definition in itertools.product(devices, catalog.tests):
if len(test_definition.inputs.filters.tags) == 0 or filter_tags(tags_cli=tags, tags_device=device.tags, tags_test=test_definition.inputs.filters.tags):
test_tags: list[str] = test_definition.inputs.filters.tags if test_definition.inputs.filters is not None else None
if not test_tags or filter_tags(tags_cli=tags, tags_device=device.tags, tags_test=test_tags):
try:
# Instantiate AntaTest object
test_instance = test_definition.test(device=device, inputs=test_definition.inputs)
Expand Down

0 comments on commit dedf633

Please sign in to comment.