提交 85718fb9 编写于 作者: M Mike Qiu 提交者: Lucas Meneghel Rodrigues

qemu.qemu_img:Fix convert.to_qed and to_raw test cases SKIP

Currently, qemu.convert.to_qed and qemu.convert.to_raw will
be skip, and the log is:

17:37:31 INFO | SKIP qcow2.virtio_blk.smp2.virtio_net.
Fedora.18.x86_64.qemu_img.convert.to_qed -> ParamNotFound:
Mandatory parameter 'compressed' is missing.
Check your cfg files for typos/mistakes

This is because in convert test, it will use params["compressed"]
and params["encrypted"], but for to_qed and to_raw, the two params
does not exist. In old version virttest, it will be OK, as it use
params.get("compressed"), and this will return 'None', the test can
run safely.

But in the new version, it will just SKIP due to no param 'compressed'.

This patch fixes problem with these two cases.
Signed-off-by: NMike Qiu <qiudayu@linux.vnet.ibm.com>
上级 46d8340f
......@@ -21,11 +21,11 @@
remove_image_large = yes
- convert:
subcommand = convert
compressed = no
encrypted = no
variants:
- to_qcow2:
dest_image_format = qcow2
compressed = no
encrypted = no
- to_raw:
dest_image_format = raw
- to_qed:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册