[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 14/16] iotests.py: add qemu_io_pipe_and_status()
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v5 14/16] iotests.py: add qemu_io_pipe_and_status() |
Date: |
Mon, 28 Feb 2022 12:39:25 +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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 6ba65eb1ff..bb071e5669 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -278,6 +278,9 @@ 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):
+ return qemu_tool_pipe_and_status('qemu-io', qemu_io_wrap_args(args))
+
def qemu_io_log(*args):
result = qemu_io(*args)
log(result, filters=[filter_testfiles, filter_qemu_io])
--
2.31.1
- [PATCH v5 05/16] block/block-copy: add block_copy_reset(), (continued)
- [PATCH v5 05/16] block/block-copy: add block_copy_reset(), Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 06/16] block: intoduce reqlist, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 07/16] block/reqlist: reqlist_find_conflict(): use ranges_overlap(), Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 03/16] block/block-copy: block_copy_state_new(): add bitmap parameter, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 10/16] block/io: introduce block driver snapshot-access API, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 08/16] block/dirty-bitmap: introduce bdrv_dirty_bitmap_status(), Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 11/16] block: introduce snapshot-access block driver, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 09/16] block/reqlist: add reqlist_wait_all(), Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 12/16] block: copy-before-write: realize snapshot-access API, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 13/16] iotests/image-fleecing: add test-case for fleecing format node, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 14/16] iotests.py: add qemu_io_pipe_and_status(),
Vladimir Sementsov-Ogievskiy <=
- [PATCH v5 15/16] iotests/image-fleecing: add test case with bitmap, Vladimir Sementsov-Ogievskiy, 2022/02/28
- [PATCH v5 16/16] iotests/image-fleecing: test push backup with fleecing, Vladimir Sementsov-Ogievskiy, 2022/02/28