summary refs log tree commit diff stats
path: root/hw/misc/iotkit-secctl.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2018-12-22 00:47:48 +0100
committerMax Reitz <mreitz@redhat.com>2019-01-31 00:44:29 +0100
commite1e6eccd497683b5c2fc2a4219f7737e875fb6b3 (patch)
tree4bc47b114a89fc9df39a4675375698346338c0bb /hw/misc/iotkit-secctl.c
parenta3d25ddd6f08d9edb17cc1164d7b10049ca3561b (diff)
downloadfocaccia-qemu-e1e6eccd497683b5c2fc2a4219f7737e875fb6b3.tar.gz
focaccia-qemu-e1e6eccd497683b5c2fc2a4219f7737e875fb6b3.zip
iotests.py: Add qemu_nbd_pipe()
In some cases, we may want to deal with qemu-nbd errors (e.g. by
launching it in a different configuration until it no longer throws
any).  In that case, we do not want its output ending up in the test
output.

It may still be useful for handling the error, though, so add a new
function that works basically like qemu_nbd(), only that it returns the
qemu-nbd output instead of making it end up in the log.  In contrast to
qemu_img_pipe(), it does still return the exit code as well, though,
because that is even more important for error handling.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20181221234750.23577-2-mreitz@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'hw/misc/iotkit-secctl.c')
0 files changed, 0 insertions, 0 deletions