diff options
author | Alex Bennée | 2021-02-22 11:14:52 +0100 |
---|---|---|
committer | Alex Bennée | 2021-02-24 12:05:14 +0100 |
commit | d98946450d82d2b46c3cc93e22cee2b189f019b0 (patch) | |
tree | 8a3f822257c94d292f0df8f1cc12c7b76c99dd38 /tests/acceptance | |
parent | docker: Bump Fedora images to release 33 (diff) | |
download | qemu-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.py | 7 |
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", "" |