Skip to content

Commit

Permalink
multihost: Testing image
Browse files Browse the repository at this point in the history
Signed-off-by: Zhenchao Liu <[email protected]>
  • Loading branch information
zhencliu committed Nov 14, 2024
1 parent 9a57983 commit d43591d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions qemu/tests/cfg/multihost.cfg
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions qemu/tests/multihost.py
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit d43591d

Please sign in to comment.