tests/functional/qemu_test: Add a function for launching kernels more easily
authorThomas Huth <thuth@redhat.com>
Thu, 19 Sep 2024 18:57:41 +0000 (20:57 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 24 Sep 2024 11:38:29 +0000 (13:38 +0200)
commitd2a500cea9b55ed437940c83b9753df71a1c8f8c
tree74b2a34b649e1e6bbe690de1aa53f232c5fbe378
parent01dc65a3bc262ab1bec8fe89775e9bbfa627becb
tests/functional/qemu_test: Add a function for launching kernels more easily

The task for launching a kernel is quite repetitive: Set the serial
console, set the -kernel and maybe -initrd and -dtb parameters,
launch the VM and then wait for the expected console output. So
it's easier in some tests to provide these steps via a separate
function.

Message-ID: <20240919185749.71222-2-thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/qemu_test/linuxkernel.py