]> git.proxmox.com Git - mirror_qemu.git/commit
iotests.py: Add qemu_nbd_pipe()
authorMax Reitz <mreitz@redhat.com>
Fri, 21 Dec 2018 23:47:48 +0000 (00:47 +0100)
committerMax Reitz <mreitz@redhat.com>
Wed, 30 Jan 2019 23:44:29 +0000 (00:44 +0100)
commite1e6eccd497683b5c2fc2a4219f7737e875fb6b3
tree4bc47b114a89fc9df39a4675375698346338c0bb
parenta3d25ddd6f08d9edb17cc1164d7b10049ca3561b
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>
tests/qemu-iotests/iotests.py