[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v9 07/31] iotests.py: Add node_info()
From: |
Max Reitz |
Subject: |
[Qemu-block] [PATCH v9 07/31] iotests.py: Add node_info() |
Date: |
Thu, 28 Jun 2018 02:07:21 +0200 |
This function queries a node; since we cannot do that right now, it
executes query-named-block-nodes and returns the matching node's object.
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/iotests.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
index 5c45788dac..3b18907f6a 100644
--- a/tests/qemu-iotests/iotests.py
+++ b/tests/qemu-iotests/iotests.py
@@ -465,6 +465,13 @@ class VM(qtest.QEMUQtestMachine):
else:
iotests.log(ev)
+ def node_info(self, node_name):
+ nodes = self.qmp('query-named-block-nodes')
+ for x in nodes['return']:
+ if x['node-name'] == node_name:
+ return x
+ assert False
+
index_re = re.compile(r'([^\[]+)\[([^\]]+)\]')
--
2.17.1
- [Qemu-block] [PATCH v9 00/31] block: Fix some filename generation issues, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 01/31] block: Use bdrv_refresh_filename() to pull, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 02/31] block: Use children list in bdrv_refresh_filename, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 03/31] block: Skip implicit nodes for filename info, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 04/31] block: Add BDS.auto_backing_file, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 05/31] block: Respect backing bs in bdrv_refresh_filename, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 07/31] iotests.py: Add node_info(),
Max Reitz <=
- [Qemu-block] [PATCH v9 06/31] iotests.py: Add filter_imgfmt(), Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 09/31] block: Make path_combine() return the path, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 08/31] iotests: Add test for backing file overrides, Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 11/31] block: bdrv_get_full_backing_filename's ret. val., Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 10/31] block: bdrv_get_full_backing_filename_from_...'s ret. val., Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 12/31] block: Add bdrv_make_absolute_filename(), Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 13/31] block: Fix bdrv_find_backing_image(), Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 14/31] block: Add bdrv_dirname(), Max Reitz, 2018/06/27
- [Qemu-block] [PATCH v9 16/31] quorum: Make bdrv_dirname() return NULL, Max Reitz, 2018/06/27