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>
This commit is contained in:
parent
7c312d8539
commit
c23d3339ce
3 changed files with 12 additions and 6 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue