aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2021-02-22 10:14:52 +0000
committerAlex Bennée <alex.bennee@linaro.org>2021-02-24 11:05:14 +0000
commitd98946450d82d2b46c3cc93e22cee2b189f019b0 (patch)
tree8a3f822257c94d292f0df8f1cc12c7b76c99dd38 /tests
parent9d66a0eada1cf558cc7fabe1e86131ea68ea7192 (diff)
downloadqemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.zip
qemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.tar.gz
qemu-d98946450d82d2b46c3cc93e22cee2b189f019b0.tar.bz2
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')
-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 ab1a4c1..ab18cdd 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", ""