]> git.lttng.org Git - lttng-tools.git/commitdiff
Tests: Add skip_all_remaining helper to python tap-generator
authorKienan Stewart <kstewart@efficios.com>
Wed, 13 Nov 2024 17:03:11 +0000 (12:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 Dec 2024 18:34:59 +0000 (13:34 -0500)
`skip_all` can only be used if a plan hasn't been emitted yet.

Change-Id: Ib2f132edf496495068f6679d563a8a35de38a33a
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/tap_generator.py

index 69cbeb47b57b619c7b22fada1f0db795cc636664..89bec1cb06433a11703ba7715870804d49a87794 100644 (file)
@@ -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):
This page took 0.028823 seconds and 4 git commands to generate.