Re: [PATCH v4 06/18] iotests: add qemu_img_json()

2022-03-21 Thread Eric Blake
On Thu, Mar 17, 2022 at 07:49:25PM -0400, John Snow wrote: > qemu_img_json() is a new helper built on top of qemu_img() that tries to > pull a valid JSON document out of the stdout stream. > > In the event that the return code is negative (the program crashed), or > the code is greater than zero

[PATCH v4 06/18] iotests: add qemu_img_json()

2022-03-17 Thread John Snow
qemu_img_json() is a new helper built on top of qemu_img() that tries to pull a valid JSON document out of the stdout stream. In the event that the return code is negative (the program crashed), or the code is greater than zero and did not produce valid JSON output, the VerboseProcessError raised