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:
Peter Krempa 2021-09-08 14:01:42 +02:00
parent df020845d5
commit 0ee87da294
3 changed files with 8 additions and 4 deletions

View File

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

View File

@ -1,4 +1,4 @@
path:ABS_BUILDDIR/virstoragedata/raw
path:ABS_SRCDIR/virstoragetestdata/images/raw
backingStoreRaw: <null>
capacity: 0
encryption: 0

View File

@ -1,4 +1,4 @@
path:ABS_BUILDDIR/virstoragedata/raw
path:ABS_SRCDIR/virstoragetestdata/images/raw
backingStoreRaw: <null>
capacity: 0
encryption: 0