Skip to content

Commit

Permalink
Merge pull request #24 from gousteris/fix-redpanda-8704
Browse files Browse the repository at this point in the history
mark/matrix: forgive empty parametrization
  • Loading branch information
gousteris authored Mar 14, 2023
2 parents 85134bd + 5b4c316 commit e128d30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ducktape/mark/_mark.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,15 @@ def name(self):
return "MATRIX"

def apply(self, seed_context, context_list):
empty_parametrization = True
for injected_args in cartesian_product_dict(self.injected_args):
empty_parametrization = False
injected_fun = _inject(**injected_args)(seed_context.function)
context_list.insert(0, seed_context.copy(function=injected_fun, injected_args=injected_args))

# forgive empty parametrization and mark test as IGNORE
if empty_parametrization and not context_list:
seed_context.ignore = True
context_list.insert(0, seed_context)
return context_list

def __eq__(self, other):
Expand Down

0 comments on commit e128d30

Please sign in to comment.