Re: [Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-31 Thread Markus Armbruster
Eric Blake writes: > On 07/28/2017 01:53 PM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Now that we have the qmp_cmd() helper, we can further simplify >>> some of the tests by using it. >>> >>> Signed-off-by: Eric Blake >>> --- > >>> } >>> -resp = qmp("{'execute': 'qom-list

Re: [Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-28 Thread Eric Blake
On 07/28/2017 01:53 PM, Markus Armbruster wrote: > Eric Blake writes: > >> Now that we have the qmp_cmd() helper, we can further simplify >> some of the tests by using it. >> >> Signed-off-by: Eric Blake >> --- >> } >> -resp = qmp("{'execute': 'qom-list-types'," >> - " 'a

Re: [Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-28 Thread Markus Armbruster
Eric Blake writes: > Now that we have the qmp_cmd() helper, we can further simplify > some of the tests by using it. > > Signed-off-by: Eric Blake > --- > tests/device-introspect-test.c | 3 +-- > tests/ide-test.c | 2 +- > tests/libqos/libqos.c | 5 +++-- > tests/libq

[Qemu-devel] [PATCH v3 08/12] qtests: convert tests to use qmp_cmd

2017-07-25 Thread Eric Blake
Now that we have the qmp_cmd() helper, we can further simplify some of the tests by using it. Signed-off-by: Eric Blake --- tests/device-introspect-test.c | 3 +-- tests/ide-test.c | 2 +- tests/libqos/libqos.c | 5 +++-- tests/libqos/pci-pc.c | 4 ++-- tests/