Skip to contentSkip to conversation

tests/avocado/virtio-gpu: Cancel test if drm rendering is not available

PATCH In review Thomas Huth 3 participants 3 messages May 30, 2023 – May 31, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/avocado/virtio-gpu: Cancel test if drm rendering is not available

The test_vhost_user_vga_virgl test currently fails on some CI machines with:

qemu-system-x86_64: egl: no drm render node available
qemu-system-x86_64: egl: render node init failed

The other test in this file already checks whether there is an error while starting QEMU - we should do the same for the test_vhost_user_vga_virgl test, too.

---
 tests/avocado/virtio-gpu.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
tests/avocado/virtio-gpu.py +5 -1
index e3b58fe799..89bfecc715 100644
@@ -143,7 +143,11 @@ def test_vhost_user_vga_virgl(self):
             "-append",
             self.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", ""
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Thomas Huth

The test_vhost_user_vga_virgl test currently fails on some CI machines with:

qemu-system-x86_64: egl: no drm render node available
qemu-system-x86_64: egl: render node init failed

The other test in this file already checks whether there is an error while starting QEMU - we should do the same for the test_vhost_user_vga_virgl test, too.

Quoted 10 lines
---
  tests/avocado/virtio-gpu.py | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)
tests/avocado/virtio-gpu.py +0 -0
index e3b58fe799..89bfecc715 100644

tests/avocado/virtio-gpu.py def test_vhost_user_vga_virgl(self): · line 151

Quoted 10 lines
tests/avocado/virtio-gpu.py +5 -1
@@ -143,7 +143,11 @@ def test_vhost_user_vga_virgl(self):
              "-append",
              self.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")
#2 lore raw
In reply to Thomas Huth
Quoted 6 lines · Thomas Huth

The test_vhost_user_vga_virgl test currently fails on some CI machines with:

qemu-system-x86_64: egl: no drm render node available
qemu-system-x86_64: egl: render node init failed

Quoted 8 lines

The other test in this file already checks whether there is an error while starting QEMU - we should do the same for the test_vhost_user_vga_virgl test, too.

---
  tests/avocado/virtio-gpu.py | 6 +++++-
  1 file changed, 5 insertions(+), 1 deletion(-)

Thanks. I have applied this to master directly, trying to green the board.

r~

Quoted 18 lines
tests/avocado/virtio-gpu.py +5 -1
index e3b58fe799..89bfecc715 100644
@@ -143,7 +143,11 @@ def test_vhost_user_vga_virgl(self):
              "-append",
              self.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", ""