mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
|
||||
/* 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-auto_raw-raw-relative", absqcow2, VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
||||
TEST_CHAIN("qcow2-qcow2_raw-raw-relative",
|
||||
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 */
|
||||
virCommandFree(cmd);
|
||||
|
|
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>
|
||||
capacity: 0
|
||||
encryption: 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
path:ABS_BUILDDIR/virstoragedata/qcow2
|
||||
path:ABS_SRCDIR/virstoragetestdata/images/qcow2_raw-raw-relative.qcow2
|
||||
backingStoreRaw: raw
|
||||
capacity: 1024
|
||||
encryption: 0
|
||||
|
@ -8,7 +8,7 @@ format:14
|
|||
protocol:none
|
||||
hostname:<null>
|
||||
|
||||
path:ABS_BUILDDIR/virstoragedata/raw
|
||||
path:ABS_SRCDIR/virstoragetestdata/images/raw
|
||||
backingStoreRaw: <null>
|
||||
capacity: 0
|
||||
encryption: 0
|
||||
|
|
Loading…
Reference in New Issue