summary refs log tree commit diff stats
path: root/tests/functional/test_arm_integratorcp.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-03-25 09:17:13 +0100
committerThomas Huth <thuth@redhat.com>2025-05-14 11:50:42 +0200
commitc23d3339ce8fc936d8c60a023ea2b052d847dc78 (patch)
tree1b60839b672f1e40072f080c5c87c055588c9e9c /tests/functional/test_arm_integratorcp.py
parent7c312d8539fe69338f7343b6514f2dc77ae2efa6 (diff)
downloadfocaccia-qemu-c23d3339ce8fc936d8c60a023ea2b052d847dc78.tar.gz
focaccia-qemu-c23d3339ce8fc936d8c60a023ea2b052d847dc78.zip
tests/functional: Skip the screendump tests if the command is not available
It is possible nowadays to compile QEMU without pixman support - in that
case the screendump command is not available and the related tests fail.
Thus skip these tests if the screendump command could not be executed.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250325081713.283490-2-thuth@redhat.com>
Diffstat (limited to 'tests/functional/test_arm_integratorcp.py')
-rwxr-xr-xtests/functional/test_arm_integratorcp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/test_arm_integratorcp.py b/tests/functional/test_arm_integratorcp.py
index a85b339d77..4f00924aa0 100755
--- a/tests/functional/test_arm_integratorcp.py
+++ b/tests/functional/test_arm_integratorcp.py
@@ -73,8 +73,10 @@ class IntegratorMachine(QemuSystemTest):
         framebuffer_ready = 'Console: switching to colour frame buffer device'
         wait_for_console_pattern(self, framebuffer_ready)
         self.vm.cmd('human-monitor-command', command_line='stop')
-        self.vm.cmd('human-monitor-command',
-                    command_line='screendump %s' % screendump_path)
+        res = self.vm.cmd('human-monitor-command',
+                          command_line='screendump %s' % screendump_path)
+        if 'unknown command' in res:
+            self.skipTest('screendump not available')
         logger = logging.getLogger('framebuffer')
 
         cpu_count = 1