From 4bd882052fefabc67c7390e659929d54283ac9b9 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Wed, 21 Feb 2024 08:56:31 -0500 Subject: [PATCH] tests: Add clear command to python tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I9eba90a4ebfe2b983a2fac1344d6a472d8b1c849 Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- tests/utils/lttngtest/lttng.py | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.34.1