From: Kienan Stewart Date: Wed, 13 Nov 2024 17:03:11 +0000 (-0500) Subject: Tests: Add skip_all_remaining helper to python tap-generator X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ed0cc87cf6b07e13293f384664cea8352339fef7;p=lttng-tools.git Tests: Add skip_all_remaining helper to python tap-generator `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 --- 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):