mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
virstoragetest: Use preformatted qcow2 image for testing relative paths
More preparation for eliminating image rewriting. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
229a6d6992
commit
8f36cf91ac
@ -498,8 +498,12 @@ mymain(void)
|
|||||||
VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
||||||
|
|
||||||
/* Qcow2 file with relative raw backing, format provided */
|
/* Qcow2 file with relative raw backing, format provided */
|
||||||
TEST_CHAIN("qcow2-qcow2_raw-raw-relative", absqcow2, VIR_STORAGE_FILE_QCOW2, EXP_PASS);
|
TEST_CHAIN("qcow2-qcow2_raw-raw-relative",
|
||||||
TEST_CHAIN("qcow2-auto_raw-raw-relative", absqcow2, VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
abs_srcdir "/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2",
|
||||||
|
VIR_STORAGE_FILE_QCOW2, EXP_PASS);
|
||||||
|
TEST_CHAIN("qcow2-auto_raw-raw-relative",
|
||||||
|
abs_srcdir "/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2",
|
||||||
|
VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
||||||
|
|
||||||
/* Rewrite qcow2 file to use absolute backing name */
|
/* Rewrite qcow2 file to use absolute backing name */
|
||||||
virCommandFree(cmd);
|
virCommandFree(cmd);
|
||||||
|
BIN
tests/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2
Normal file
BIN
tests/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2
Normal file
Binary file not shown.
@ -1,4 +1,4 @@
|
|||||||
path:ABS_BUILDDIR/virstoragedata/qcow2
|
path:ABS_SRCDIR/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2
|
||||||
backingStoreRaw: <null>
|
backingStoreRaw: <null>
|
||||||
capacity: 0
|
capacity: 0
|
||||||
encryption: 0
|
encryption: 0
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
path:ABS_BUILDDIR/virstoragedata/qcow2
|
path:ABS_SRCDIR/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2
|
||||||
backingStoreRaw: raw
|
backingStoreRaw: raw
|
||||||
capacity: 1024
|
capacity: 1024
|
||||||
encryption: 0
|
encryption: 0
|
||||||
@ -8,7 +8,7 @@ format:14
|
|||||||
protocol:none
|
protocol:none
|
||||||
hostname:<null>
|
hostname:<null>
|
||||||
|
|
||||||
path:ABS_BUILDDIR/virstoragedata/raw
|
path:ABS_SRCDIR/virstoragetestdata/images/raw
|
||||||
backingStoreRaw: <null>
|
backingStoreRaw: <null>
|
||||||
capacity: 0
|
capacity: 0
|
||||||
encryption: 0
|
encryption: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user