tests: Add clear command to python tests
authorKienan Stewart <kstewart@efficios.com>
Wed, 21 Feb 2024 13:56:31 +0000 (08:56 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 1 Mar 2024 19:07:46 +0000 (14:07 -0500)
Change-Id: I9eba90a4ebfe2b983a2fac1344d6a472d8b1c849
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/lttngtest/lttng.py

index 3f1c48547d9e51d362171bf979c7ae1e840a76e3..24b95b0a7158222d3b12f361afe1a1bc8f8fb500 100644 (file)
@@ -525,6 +525,10 @@ class _Session(lttngctl.Session):
         # type: () -> None
         self._client._run_cmd("stop '{session_name}'".format(session_name=self.name))
 
+    def clear(self):
+        # type: () -> None
+        self._client._run_cmd("clear '{session_name}'".format(session_name=self.name))
+
     def destroy(self):
         # type: () -> None
         self._client._run_cmd("destroy '{session_name}'".format(session_name=self.name))
This page took 0.025833 seconds and 4 git commands to generate.