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:
Peter Krempa 2021-09-08 14:08:47 +02:00
parent 229a6d6992
commit 8f36cf91ac
4 changed files with 9 additions and 5 deletions

View File

@ -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);

View File

@ -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

View File

@ -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