iotests: Factor out qemu_tool_pipe_and_status()
commit91efbae93887a2b80e2979d8b8a169302cf927d1
authorKevin Wolf <kwolf@redhat.com>
Thu, 24 Sep 2020 15:27:14 +0000 (24 17:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Oct 2020 13:46:40 +0000 (2 15:46 +0200)
tree3f7cb6080f86d1dca547b8b958807110cb3ba0e6
parent443127e81b9b83c402dc510910cc6841e1039e37
iotests: Factor out qemu_tool_pipe_and_status()

We have three almost identical functions that call an external process
and return its output and return code. Refactor them into small wrappers
around a common function.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200924152717.287415-29-kwolf@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py