OSDN Git Service

tests/x86: add helper qtest_qmp_device_del_send()
authorMichael Labiuk <michael.labiuk@virtuozzo.com>
Thu, 29 Sep 2022 22:35:39 +0000 (01:35 +0300)
committerThomas Huth <thuth@redhat.com>
Tue, 11 Oct 2022 12:06:48 +0000 (14:06 +0200)
commitea42a6c405269229d0923719854637425be07b31
treed66e522890e732d53375aee299b1411260ce88c3
parent770beadb984d630a89b5a7327925a4cfba4488d5
tests/x86: add helper qtest_qmp_device_del_send()

Move sending 'device_del' command to separate function.
Function can be used in case of addition action is needed to start
actual removing device after sending command.

Signed-off-by: Michael Labiuk <michael.labiuk@virtuozzo.com>
Message-Id: <20220929223547.1429580-2-michael.labiuk@virtuozzo.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
[thuth: Fixed typo]
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/device-plug-test.c
tests/qtest/drive_del-test.c
tests/qtest/libqos/pci-pc.c
tests/qtest/libqtest.c
tests/qtest/libqtest.h