From: Kienan Stewart Date: Wed, 21 Feb 2024 13:56:31 +0000 (-0500) Subject: tests: Add clear command to python tests X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4bd882052fefabc67c7390e659929d54283ac9b9;p=lttng-tools.git tests: Add clear command to python tests Change-Id: I9eba90a4ebfe2b983a2fac1344d6a472d8b1c849 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- diff --git a/tests/utils/lttngtest/lttng.py b/tests/utils/lttngtest/lttng.py index 3f1c48547..24b95b0a7 100644 --- a/tests/utils/lttngtest/lttng.py +++ b/tests/utils/lttngtest/lttng.py @@ -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))