[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 14/18] iotests.py: add qemu_io_pipe_and_status()
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v4 14/18] iotests.py: add qemu_io_pipe_and_status() |
Date: |
Wed, 16 Feb 2022 20:46:13 +0100 |
Add helper that returns both status and output, to be used in the
following commit
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
tests/qemu-iotests/iotests.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 6ba65eb1ff..23bc6f686f 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -278,6 +278,10 @@ 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):
+ args = qemu_io_args + list(args)
+ return qemu_tool_pipe_and_status('qemu-io', args)
+
def qemu_io_log(*args):
result = qemu_io(*args)
log(result, filters=[filter_testfiles, filter_qemu_io])
--
2.31.1
- [PATCH v4 09/18] block/reqlist: add reqlist_wait_all(), (continued)
- [PATCH v4 09/18] block/reqlist: add reqlist_wait_all(), Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 16/18] block: blk_root(): return non-const pointer, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 08/18] block/dirty-bitmap: introduce bdrv_dirty_bitmap_status(), Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 17/18] qapi: backup: add immutable-source parameter, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 18/18] iotests/image-fleecing: test push backup with fleecing, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 11/18] block: introduce snapshot-access filter, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 14/18] iotests.py: add qemu_io_pipe_and_status(),
Vladimir Sementsov-Ogievskiy <=
- [PATCH v4 13/18] iotests/image-fleecing: add test-case for fleecing format node, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 15/18] iotests/image-fleecing: add test case with bitmap, Vladimir Sementsov-Ogievskiy, 2022/02/16
- [PATCH v4 12/18] block: copy-before-write: realize snapshot-access API, Vladimir Sementsov-Ogievskiy, 2022/02/16