]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qtest: get rid of 'qmp_command' helper in migration test
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 1 Jun 2023 16:13:40 +0000 (17:13 +0100)
committerJuan Quintela <quintela@redhat.com>
Fri, 2 Jun 2023 09:46:19 +0000 (11:46 +0200)
commitffd47275895633f2f21aa5f86ab184776b5ea9d1
tree0d2db284a77f14a050acd76f1788d017fe4db56d
parent0150e75d012b34182fa1951d346377f8196464e4
tests/qtest: get rid of 'qmp_command' helper in migration test

This function duplicates logic of qtest_qmp_assert_success_ref.
The qtest_qmp_assert_success_ref method has better diagnostics
on failure because it prints the entire QMP response, instead
of just asserting on existance of the 'error' key.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230601161347.1803440-4-berrange@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
tests/qtest/migration-helpers.c
tests/qtest/migration-helpers.h
tests/qtest/migration-test.c