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>
This commit is contained in:
Alex Bennée 2021-02-22 10:14:52 +00:00
parent 9d66a0eada
commit d98946450d

View File

@ -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", ""