]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemublocktest: Use "target only" mode in 'testJSONtoJSON' and 'testBackingXMLjsonXML'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 Oct 2023 14:18:40 +0000 (16:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Oct 2023 07:02:23 +0000 (09:02 +0200)
commitb9a5541b49517b1099b5e2ca54366e3f3a754776
tree4e32ea702b47c66284723355d7c561b2f726da82
parente60c3057cc22adcfefbfd66a01e2df4b135cb8b5
qemublocktest: Use "target only" mode in 'testJSONtoJSON' and 'testBackingXMLjsonXML'

Both tests pass a disk source definition which didn't go through the
preparation steps and thus contains only the target information that
were originally present, thus we should be using the
QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_TARGET_ONLY flag.

For the same reason QEMU_BLOCK_STORAGE_SOURCE_BACKEND_PROPS_AUTO_READONLY
used in 'testJSONtoJSON' doesn't make sense.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/jsontojson/curl-libguestfs-out.json
tests/qemublocktestdata/jsontojson/ssh-passthrough-libguestfs-out.json