[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 15/19] iotests.py: add qemu_io_pipe_and_status()
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v3 15/19] iotests.py: add qemu_io_pipe_and_status() |
Date: |
Wed, 22 Dec 2021 18:40:14 +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 83bfedb902..b5e6216517 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -238,6 +238,10 @@ def qemu_io(*args):
args = qemu_io_args + list(args)
return qemu_tool_pipe_and_status('qemu-io', 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 v3 04/19] block/copy-before-write: add bitmap open parameter, (continued)
- [PATCH v3 04/19] block/copy-before-write: add bitmap open parameter, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 10/19] block: introduce fleecing block driver, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 05/19] block/block-copy: add block_copy_reset(), Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 03/19] block/block-copy: block_copy_state_new(): add bitmap parameter, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 11/19] block/copy-before-write: support fleecing block driver, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 12/19] block/block-copy: add write-unchanged mode, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 06/19] block: intoduce reqlist, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 13/19] block/copy-before-write: use write-unchanged in fleecing mode, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 09/19] block: introduce FleecingState class, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 14/19] iotests/image-fleecing: add test-case for fleecing format node, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 15/19] iotests.py: add qemu_io_pipe_and_status(),
Vladimir Sementsov-Ogievskiy <=
- [PATCH v3 16/19] iotests/image-fleecing: add test case with bitmap, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 17/19] block: blk_root(): return non-const pointer, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 18/19] qapi: backup: add immutable-source parameter, Vladimir Sementsov-Ogievskiy, 2021/12/22
- [PATCH v3 19/19] iotests/image-fleecing: test push backup with fleecing, Vladimir Sementsov-Ogievskiy, 2021/12/22