Re: [PATCH v3 08/34] tests/test-qmp-event: Simplify test data setup

2020-03-16 Thread Marc-André Lureau
On Sun, Mar 15, 2020 at 3:55 PM Markus Armbruster wrote: > > Building expected data with qdict_put() & friends is tedious to write > and hard to read. Parse them from string literals with > qdict_from_jsonf_nofail() instead. > > While there, use initializers instead of assignments for

[PATCH v3 08/34] tests/test-qmp-event: Simplify test data setup

2020-03-15 Thread Markus Armbruster
Building expected data with qdict_put() & friends is tedious to write and hard to read. Parse them from string literals with qdict_from_jsonf_nofail() instead. While there, use initializers instead of assignments for initializing aggregate event arguments. Signed-off-by: Markus Armbruster ---