On 9/7/26 15:13, Marc-André Lureau wrote:
> Replace HMP with QMP equivalent.
>
> Signed-off-by: Marc-André Lureau <[email protected]>
> ---
> tests/functional/arm/test_integratorcp.py | 13 ++++++++-----
> tests/functional/m68k/test_nextcube.py | 11 +++++++----
> tests/functional/mips64el/test_malta.py | 13 ++++++++-----
> 3 files changed, 23 insertions(+), 14 deletions(-)
[...] eaten a bit
> diff --git a/tests/functional/mips64el/test_malta.py
> b/tests/functional/mips64el/test_malta.py
> index 163bbaf5ca36..3b6d53799616 100755
> --- a/tests/functional/mips64el/test_malta.py
> +++ b/tests/functional/mips64el/test_malta.py
> @@ -11,6 +11,7 @@
>
> import os
>
> +from qemu.qmp.qmp_client import ExecuteError
> from qemu_test import LinuxKernelTest, Asset
> from qemu_test import exec_command_and_wait_for_pattern
> from qemu_test import skipIfMissingImports, skipFlakyTest, skipUntrustedTest
> @@ -154,11 +155,13 @@ def do_test_i6400_framebuffer_logo(self,
> cpu_cores_count):
> self.vm.launch()
> framebuffer_ready = 'Console: switching to colour frame buffer
> device'
> self.wait_for_console_pattern(framebuffer_ready)
> - self.vm.cmd('human-monitor-command', command_line='stop')
> - res = self.vm.cmd('human-monitor-command',
> - command_line=f'screendump {screendump_path}')
> - if 'unknown command' in res:
> - self.skipTest('screendump not available')
> + self.vm.cmd('stop')
> + try:
> + self.vm.cmd('screeandump', filename=screendump_path)
Typo here :-) screeandump.
Den