diff mbox series

[3/3] tests/avocado: Remove unused QemuUserTest class

Message ID 20240822104238.75045-4-philmd@linaro.org (mailing list archive)
State New, archived
Headers show
Series [1/3] tests/functional: Add QemuUserTest class | expand

Commit Message

Philippe Mathieu-Daudé Aug. 22, 2024, 10:42 a.m. UTC
The single test that was using the QemuUserTest class
has been converted to the functional test framework.
This class is now unused, remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 tests/avocado/avocado_qemu/__init__.py | 19 +------------------
 1 file changed, 1 insertion(+), 18 deletions(-)

Comments

Thomas Huth Aug. 22, 2024, 1:55 p.m. UTC | #1
On 22/08/2024 12.42, Philippe Mathieu-Daudé wrote:
> The single test that was using the QemuUserTest class
> has been converted to the functional test framework.
> This class is now unused, remove it.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   tests/avocado/avocado_qemu/__init__.py | 19 +------------------
>   1 file changed, 1 insertion(+), 18 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox series

Patch

diff --git a/tests/avocado/avocado_qemu/__init__.py b/tests/avocado/avocado_qemu/__init__.py
index 0d57addfea..0e4ecea7a0 100644
--- a/tests/avocado/avocado_qemu/__init__.py
+++ b/tests/avocado/avocado_qemu/__init__.py
@@ -17,7 +17,7 @@ 
 import uuid
 
 import avocado
-from avocado.utils import process, ssh
+from avocado.utils import ssh
 from avocado.utils.path import find_command
 
 from qemu.machine import QEMUMachine
@@ -384,23 +384,6 @@  def tearDown(self):
         super().tearDown()
 
 
-class QemuUserTest(QemuBaseTest):
-    """Facilitates user-mode emulation tests."""
-
-    def setUp(self):
-        self._ldpath = []
-        super().setUp('qemu-')
-
-    def add_ldpath(self, ldpath):
-        self._ldpath.append(os.path.abspath(ldpath))
-
-    def run(self, bin_path, args=[]):
-        qemu_args = " ".join(["-L %s" % ldpath for ldpath in self._ldpath])
-        bin_args = " ".join(args)
-        return process.run("%s %s %s %s" % (self.qemu_bin, qemu_args,
-                                            bin_path, bin_args))
-
-
 class LinuxSSHMixIn:
     """Contains utility methods for interacting with a guest via SSH."""