On 6/9/24 20:05, Thomas Huth wrote:
Copy the LinuxKernelTest from tests/acceptance/boot_linux_console.py
to be able to convert the related tests to the functional test framework
in the following patches.

Signed-off-by: Thomas Huth <th...@redhat.com>
---
  tests/functional/qemu_test/__init__.py    |  1 +
  tests/functional/qemu_test/linuxkernel.py | 41 +++++++++++++++++++++++
  2 files changed, 42 insertions(+)
  create mode 100644 tests/functional/qemu_test/linuxkernel.py


+++ b/tests/functional/qemu_test/linuxkernel.py
@@ -0,0 +1,41 @@
+# Test class for testing the boot process of a Linux kernel

+class LinuxKernelTest(QemuSystemTest):

+    def extract_from_deb(self, deb_path, path):
+        """
+        Extracts a file from a deb package into the test workdir
+
+        :param deb_path: path to the deb archive
+        :param path: path within the deb archive of the file to be extracted
+        :returns: path of the extracted file
+        """

I originally put this one in qemu_test.utils thinking we could have
a non-Linux test using Debian artifacts. Probably over-engineering,
besides we can move that later, so:

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>



Reply via email to