aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2025-03-04 22:24:11 +0000
committerAlex Bennée <alex.bennee@linaro.org>2025-03-10 10:30:00 +0000
commit4e4e6986b62d0bb29282e4aeb09ca5b959b0afe3 (patch)
treec9bb3a2390a629e5a42f4bdc07119eb6481636e8
parent94634fbc66869b31491e95c26eab731d67c13e7c (diff)
downloadqemu-4e4e6986b62d0bb29282e4aeb09ca5b959b0afe3.zip
qemu-4e4e6986b62d0bb29282e4aeb09ca5b959b0afe3.tar.gz
qemu-4e4e6986b62d0bb29282e4aeb09ca5b959b0afe3.tar.bz2
tests/functional: bail early if vkmark hangs
The message: MESA-VIRTIO: debug: stuck in fence wait with iter at %d Seems to occur more often on debug builds. Rather than waiting for our long timeout to hit we might as well bail as soon as we see the message. Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-5-alex.bennee@linaro.org>
-rwxr-xr-xtests/functional/test_aarch64_virt_gpu.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/functional/test_aarch64_virt_gpu.py b/tests/functional/test_aarch64_virt_gpu.py
index 9a1ee2b..eea1e8c 100755
--- a/tests/functional/test_aarch64_virt_gpu.py
+++ b/tests/functional/test_aarch64_virt_gpu.py
@@ -78,7 +78,7 @@ class Aarch64VirtGPUMachine(LinuxKernelTest):
self.wait_for_console_pattern('buildroot login:')
ec_and_wait(self, 'root', '#')
- def _run_virt_weston_test(self, cmd):
+ def _run_virt_weston_test(self, cmd, fail = None):
# make it easier to detect successful return to shell
PS1 = 'RES=[$?] # '
@@ -87,7 +87,7 @@ class Aarch64VirtGPUMachine(LinuxKernelTest):
ec_and_wait(self, 'export XDG_RUNTIME_DIR=/tmp', '#')
ec_and_wait(self, f"export PS1='{PS1}'", OK_CMD)
full_cmd = f"weston -B headless --renderer gl --shell kiosk -- {cmd}"
- ec_and_wait(self, full_cmd, OK_CMD)
+ ec_and_wait(self, full_cmd, OK_CMD, fail)
@skipIfMissingCommands('zstd')
def test_aarch64_virt_with_vulkan_gpu(self):
@@ -95,7 +95,9 @@ class Aarch64VirtGPUMachine(LinuxKernelTest):
self.require_device('virtio-gpu-gl-pci')
self._launch_virt_gpu("virtio-gpu-gl-pci,hostmem=4G,blob=on,venus=on")
- self._run_virt_weston_test("vkmark -b:duration=1.0")
+ self._run_virt_weston_test("vkmark -b:duration=1.0",
+ "debug: stuck in fence wait with iter at")
+
if __name__ == '__main__':
LinuxKernelTest.main()