summaryrefslogtreecommitdiffstats
path: root/tests/acceptance
diff options
context:
space:
mode:
authorAlex Bennée2021-02-22 11:14:52 +0100
committerAlex Bennée2021-02-24 12:05:14 +0100
commitd98946450d82d2b46c3cc93e22cee2b189f019b0 (patch)
tree8a3f822257c94d292f0df8f1cc12c7b76c99dd38 /tests/acceptance
parentdocker: Bump Fedora images to release 33 (diff)
downloadqemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.tar.gz
qemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.tar.xz
qemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.zip
tests/acceptance: allow a "graceful" failing for virtio-gpu test
This is a band-aid with a TODO for cases when QEMU doesn't start due to missing VirGL. Longer term we could do with some proper feature probing. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Willian Rampazzo <willianr@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210222101455.12640-4-alex.bennee@linaro.org>
Diffstat (limited to 'tests/acceptance')
-rw-r--r--tests/acceptance/virtio-gpu.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/acceptance/virtio-gpu.py b/tests/acceptance/virtio-gpu.py
index ab1a4c1a71..ab18cddbb7 100644
--- a/tests/acceptance/virtio-gpu.py
+++ b/tests/acceptance/virtio-gpu.py
@@ -85,7 +85,12 @@ class VirtioGPUx86(Test):
"-append",
kernel_command_line,
)
- self.vm.launch()
+ try:
+ self.vm.launch()
+ except:
+ # TODO: probably fails because we are missing the VirGL features
+ self.cancel("VirGL not enabled?")
+
self.wait_for_console_pattern("as init process")
exec_command_and_wait_for_pattern(
self, "/usr/sbin/modprobe virtio_gpu", ""