From ed0cc87cf6b07e13293f384664cea8352339fef7 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 13 Nov 2024 12:03:11 -0500 Subject: [PATCH] Tests: Add skip_all_remaining helper to python tap-generator MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit `skip_all` can only be used if a plan hasn't been emitted yet. Change-Id: Ib2f132edf496495068f6679d563a8a35de38a33a Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- tests/utils/lttngtest/tap_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/utils/lttngtest/tap_generator.py b/tests/utils/lttngtest/tap_generator.py index 69cbeb47b..89bec1cb0 100644 --- a/tests/utils/lttngtest/tap_generator.py +++ b/tests/utils/lttngtest/tap_generator.py @@ -124,6 +124,10 @@ class TapGenerator: self._last_test_case_id = self._total_test_count + def skip_all_remaining(self, reason): + # type: (str) -> None + self.skip(reason, self.remaining_test_cases) + def skip(self, reason, skip_count=1): # type: (str, int) -> None for i in range(skip_count): -- 2.39.5