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 <vsementsov@virtuozzo.com> Message-Id: <20220303194349.2304213-15-vsementsov@virtuozzo.com> Signed-off-by: Hanna Reitz <hreitz@redhat.com>
This commit is contained in:
parent
3927e5c5c8
commit
308c6abf73
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user