tests/libqtest: Make qmp_assert_success() independent from global_qtest
commit6fc9f3d347aee337421f8afc4d0984294f8ea6c3
authorThomas Huth <thuth@redhat.com>
Tue, 23 Jul 2019 19:22:39 +0000 (23 21:22 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Aug 2019 17:24:10 +0000 (15 19:24 +0200)
treecc551dfcc927f02a95c9666d26c87caeded1c4f0
parente5758de4e836c3b2edc2befd904651fc6967d74f
tests/libqtest: Make qmp_assert_success() independent from global_qtest

The normal libqtest library functions should never depend on global_qtest.
Pass in the test state via parameter instead. And while we're at it,
also rename this function to qtest_qmp_assert_success() to make it clear
that it is part of libqtest.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190813093047.27948-7-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/libqtest.c
tests/libqtest.h
tests/virtio-scsi-test.c