summary refs log tree commit diff stats
path: root/tests/qemu-iotests/iotests.py
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-10-14 19:02:06 +0200
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2021-12-23 09:40:34 +0100
commit75c90eeeaf142f70c85ee6b5839abdd7cb1486f5 (patch)
treeb900b80d2a392ddf2d641b5f1d92cf03f3605afe /tests/qemu-iotests/iotests.py
parent94a781f220141ad9f91a1c1583368cd5f24c4d7e (diff)
downloadfocaccia-qemu-75c90eeeaf142f70c85ee6b5839abdd7cb1486f5.tar.gz
focaccia-qemu-75c90eeeaf142f70c85ee6b5839abdd7cb1486f5.zip
iotests.py: add qemu_io_popen()
Add qemu-io Popen constructor wrapper. To be used in the following new
test commit.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Nikita Lapshin <nikita.lapshin@virtuozzo.com>
Diffstat (limited to 'tests/qemu-iotests/iotests.py')
-rw-r--r--tests/qemu-iotests/iotests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index c4b81a291b..1e2f2391d1 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -247,6 +247,9 @@ def qemu_io_wrap_args(args: Sequence[str]) -> List[str]:
     else:
         return qemu_io_args + list(args)
 
+def qemu_io_popen(*args):
+    return qemu_tool_popen(qemu_io_wrap_args(args))
+
 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]