From fa21a767aeadf02ff77a9b74c132d34460b7a205 Mon Sep 17 00:00:00 2001 From: Solonas Gousteris Date: Mon, 13 Mar 2023 16:47:09 +0200 Subject: [PATCH] mark/matrix: forgive empty parametrization ref redpanda-data/redpanda#8704 --- ducktape/mark/_mark.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ducktape/mark/_mark.py b/ducktape/mark/_mark.py index acfd91f45..634446e53 100644 --- a/ducktape/mark/_mark.py +++ b/ducktape/mark/_mark.py @@ -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):