Skip to content

Commit

Permalink
mark/matrix: forgive empty parametrization
Browse files Browse the repository at this point in the history
  • Loading branch information
gousteris committed Mar 13, 2023
1 parent d9bd1ee commit fa21a76
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 fa21a76

Please sign in to comment.