diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-03-25 09:17:13 +0100 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-05-14 11:50:42 +0200 |
| commit | c23d3339ce8fc936d8c60a023ea2b052d847dc78 (patch) | |
| tree | 1b60839b672f1e40072f080c5c87c055588c9e9c /tests/functional/test_m68k_nextcube.py | |
| parent | 7c312d8539fe69338f7343b6514f2dc77ae2efa6 (diff) | |
| download | focaccia-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_m68k_nextcube.py')
| -rwxr-xr-x | tests/functional/test_m68k_nextcube.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/functional/test_m68k_nextcube.py b/tests/functional/test_m68k_nextcube.py index ff773a7994..13c72bd136 100755 --- a/tests/functional/test_m68k_nextcube.py +++ b/tests/functional/test_m68k_nextcube.py @@ -32,8 +32,10 @@ class NextCubeMachine(QemuSystemTest): # TODO: wait for the 'displaysurface_create 1120x832' trace-event. time.sleep(2) - self.vm.cmd('human-monitor-command', - command_line='screendump %s' % screenshot_path) + res = self.vm.cmd('human-monitor-command', + command_line='screendump %s' % screenshot_path) + if 'unknown command' in res: + self.skipTest('screendump not available') @skipIfMissingImports("PIL") def test_bootrom_framebuffer_size(self): |