mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-06 20:00:05 +00:00
virstoragetest: Use existing file for testing 'raw' image lookup
We've already added a 'raw' file to the example image directory so we can use that instead of formatting one. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
df020845d5
commit
0ee87da294
@ -504,8 +504,12 @@ mymain(void)
|
||||
TEST_CHAIN("missing", "bogus", VIR_STORAGE_FILE_RAW, EXP_FAIL);
|
||||
|
||||
/* Raw image, whether with right format or no specified format */
|
||||
TEST_CHAIN("raw-raw", absraw, VIR_STORAGE_FILE_RAW, EXP_PASS);
|
||||
TEST_CHAIN("raw-auto", absraw, VIR_STORAGE_FILE_AUTO, EXP_PASS);
|
||||
TEST_CHAIN("raw-raw",
|
||||
abs_srcdir "/virstoragetestdata/images/raw",
|
||||
VIR_STORAGE_FILE_RAW, EXP_PASS);
|
||||
TEST_CHAIN("raw-auto",
|
||||
abs_srcdir "/virstoragetestdata/images/raw",
|
||||
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);
|
||||
|
@ -1,4 +1,4 @@
|
||||
path:ABS_BUILDDIR/virstoragedata/raw
|
||||
path:ABS_SRCDIR/virstoragetestdata/images/raw
|
||||
backingStoreRaw: <null>
|
||||
capacity: 0
|
||||
encryption: 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
path:ABS_BUILDDIR/virstoragedata/raw
|
||||
path:ABS_SRCDIR/virstoragetestdata/images/raw
|
||||
backingStoreRaw: <null>
|
||||
capacity: 0
|
||||
encryption: 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user