From d43591d9b8acca8771b6ce627251355850cfda62 Mon Sep 17 00:00:00 2001 From: Zhenchao Liu Date: Thu, 14 Nov 2024 14:38:51 +0800 Subject: [PATCH] multihost: Testing image Signed-off-by: Zhenchao Liu --- qemu/tests/cfg/multihost.cfg | 15 +++++++++++++++ qemu/tests/multihost.py | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 qemu/tests/cfg/multihost.cfg create mode 100644 qemu/tests/multihost.py diff --git a/qemu/tests/cfg/multihost.cfg b/qemu/tests/cfg/multihost.cfg new file mode 100644 index 0000000000..04952eafa1 --- /dev/null +++ b/qemu/tests/cfg/multihost.cfg @@ -0,0 +1,15 @@ +- multihost: + type = multihost + vms = '' + start_vm = no + kill_vm = no + nodes = node1 + multihost = yes + storage_type = nfs + force_create_image = yes + remove_image = yes + images = img1 img2 + storage_type = nfs + qcow2: + image_cluster_size = 1M + preallocated = metadata diff --git a/qemu/tests/multihost.py b/qemu/tests/multihost.py new file mode 100644 index 0000000000..0212c107da --- /dev/null +++ b/qemu/tests/multihost.py @@ -0,0 +1,10 @@ +from virttest.vt_imgr import vt_imgr + + +def run(test, params, env): + images = dict() + for image_tag in params.objects("images"): + images[image_tag] = vt_imgr.query_image(image_tag) + + for image_id in images.values(): + test.log.info("%s: %s", image_id, vt_imgr.get_image_info(image_id))