summary refs log tree commit diff stats
path: root/tests/avocado/ppc_hv_tests.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests/avocado: ppc_hv_tests.py set alpine time before setup-alpineNicholas Piggin2024-03-301-0/+3
| | | | | | | | | | | | | If the time is wrong, setup-alpine SSL certificate checks can fail. setup-alpine is used to bring up the network, but it doesn't seem to to set NTP time before the failing SSL checks. This test has recently started failing presumably because the default time has now fallen too far behind. Fix this by setting time from the host time before running setup-alpine. Fixes: c9cb496710758 ("tests/avocado: ppc add hypervisor tests") Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
* tests/avocado: Fix ppc_hv_tests.py xorriso dependency guardNicholas Piggin2024-03-301-1/+2
| | | | | | | | | | | | | | For some reason the skipIf missing_deps() check fails to skip the test if it comes after the skipUnless lines, causing an error running on systems without xorriso. Avocado implements skipUnless is just an inverted skipIf, so it's not clear what the bug is or why this fixes it. For now it's enough to get things working. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2246 Fixes: c9cb496710758 ("tests/avocado: ppc add hypervisor tests") Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
* tests/avocado: ppc add hypervisor testsNicholas Piggin2024-02-231-0/+202
The powernv and pseries machines both provide hypervisor facilities that are supported by KVM. This is a large and complicated set of features that don't get much system-level testing in ppc tests. Add a new test case for these which runs QEMU KVM inside the target. This downloads an Alpine VM image, boots it and downloads and installs the qemu package, then boots a virtual machine under it, re-using the original Alpine VM image. Signed-off-by: Nicholas Piggin <npiggin@gmail.com>