[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 10/11] iotests.py: add VM.qmp_check() helper
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
[PATCH v3 10/11] iotests.py: add VM.qmp_check() helper |
Date: |
Sat, 26 Feb 2022 00:43:07 +0100 |
I'm tired of this pattern being everywhere. Let's add a helper.
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 1b48c5b9c9..dd33970454 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -977,6 +977,10 @@ def get_block_graph(self):
def assert_edges_list(self, edges):
assert sorted(edges) == sorted(self.get_block_graph())
+ def qmp_check(self, *args, **kwargs):
+ result = self.qmp(*args, **kwargs)
+ assert result == {'return': {}}
+
def assert_block_path(self, root, path, expected_node, graph=None):
"""
Check whether the node under the given path in the block graph
--
2.31.1
- [PATCH v3 00/11] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 01/11] block-backend: blk_root(): drop const specifier on return type, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 02/11] block/export: add blk_by_export_id(), Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 03/11] block: make bdrv_find_child() function public, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 04/11] block: bdrv_replace_child_bs(): move to external transaction, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 06/11] qapi: add x-blockdev-replace transaction action, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 05/11] qapi: add x-blockdev-replace command, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 07/11] block: bdrv_get_xdbg_block_graph(): report export ids, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 08/11] iotests.py: qemu_img_create: use imgfmt by default, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 09/11] iotests.py: introduce VM.assert_edges_list() method, Vladimir Sementsov-Ogievskiy, 2022/02/25
- [PATCH v3 10/11] iotests.py: add VM.qmp_check() helper,
Vladimir Sementsov-Ogievskiy <=
- [PATCH v3 11/11] iotests: add filter-insertion, Vladimir Sementsov-Ogievskiy, 2022/02/25
- Re: [PATCH v3 00/11] blockdev-replace, Vladimir Sementsov-Ogievskiy, 2022/02/25