Replace HMP with QMP equivalent.
Signed-off-by: Marc-André Lureau <[email protected]>
---
tests/functional/arm/test_integratorcp.py | 5 ++---
tests/functional/m68k/test_nextcube.py | 3 +--
tests/functional/mips64el/test_malta.py | 5 ++---
3 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/tests/functional/arm/test_integratorcp.py
b/tests/functional/arm/test_integratorcp.py
index f7551ff7cb88..576c0670bd72 100755
--- a/tests/functional/arm/test_integratorcp.py
+++ b/tests/functional/arm/test_integratorcp.py
@@ -73,9 +73,8 @@ def test_framebuffer_tux_logo(self):
self.boot_integratorcp()
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)
+ self.vm.cmd('stop')
+ self.vm.cmd('screendump', filename=screendump_path)
cpu_count = 1
match_threshold = 0.92
diff --git a/tests/functional/m68k/test_nextcube.py
b/tests/functional/m68k/test_nextcube.py
index f38f294bad67..82e157882e0a 100755
--- a/tests/functional/m68k/test_nextcube.py
+++ b/tests/functional/m68k/test_nextcube.py
@@ -40,8 +40,7 @@ def check_bootrom_framebuffer(self, screenshot_path):
break
time.sleep(0.1)
- self.vm.cmd('human-monitor-command',
- command_line=f"screendump {screenshot_path}")
+ self.vm.cmd('screendump', filename=screenshot_path)
@skipIfMissingImports("PIL")
def test_bootrom_framebuffer_size(self):
diff --git a/tests/functional/mips64el/test_malta.py
b/tests/functional/mips64el/test_malta.py
index 80fe3424b234..ca001e6fb704 100755
--- a/tests/functional/mips64el/test_malta.py
+++ b/tests/functional/mips64el/test_malta.py
@@ -156,9 +156,8 @@ 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')
- self.vm.cmd('human-monitor-command',
- command_line=f'screendump {screendump_path}')
+ self.vm.cmd('stop')
+ self.vm.cmd('screendump', filename=screendump_path)
match_threshold = 0.95
screendump_bgr = cv2.imread(screendump_path, cv2.IMREAD_COLOR)
--
2.55.0.543.g5ebe2ebe4ea8