]> git.proxmox.com Git - mirror_qemu.git/commit
tests: add qtest_qmp_device_add_qdict() helper
authorIgor Mammedov <imammedo@redhat.com>
Fri, 30 Aug 2019 11:07:22 +0000 (07:07 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Oct 2019 21:18:08 +0000 (18:18 -0300)
commitb4510bb4109f5fad478fb238b0ab11be7d2bc2fd
tree1afa61324e5e0b61d0b52c088bb8d895137ab6b5
parent69b81893bc28feb678188fbcdce52eff1609bdad
tests: add qtest_qmp_device_add_qdict() helper

Add an API that takes QDict directly, so users could skip steps
of first building json dictionary and converting it back to
QDict in existing qtest_qmp_device_add() and instead use QDict
directly without intermediate conversion.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190830110723.15096-2-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/libqtest.c
tests/libqtest.h