From: Vladimir Sementsov-Ogievskiy Date: Thu, 3 Mar 2022 19:43:47 +0000 (+0100) Subject: iotests.py: add qemu_io_pipe_and_status() X-Git-Tag: v7.0.0-rc0~24^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=308c6abf731b8c54bcfb5e9e8e30f2478b1d7457;p=thirdparty%2Fqemu.git iotests.py: add qemu_io_pipe_and_status() Add helper that returns both status and output, to be used in the following commit Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20220303194349.2304213-15-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz --- diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index aff1b5d3053..508adade9e8 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -278,6 +278,9 @@ def qemu_io(*args): '''Run qemu-io and return the stdout data''' return qemu_tool_pipe_and_status('qemu-io', qemu_io_wrap_args(args))[0] +def qemu_io_pipe_and_status(*args): + return qemu_tool_pipe_and_status('qemu-io', qemu_io_wrap_args(args)) + def qemu_io_log(*args): result = qemu_io(*args) log(result, filters=[filter_testfiles, filter_qemu_io])