[PATCH 1/7] tests: virstorage: Fix backing file format of created image

Peter Krempa pkrempa at redhat.com
Fri Feb 21 13:51:39 UTC 2020


We create some images for testing our code. We've recorded wrong format
of the backing file for one of the images though.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 tests/virstoragetest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c
index 39040bf4cb..e7794d6168 100644
--- a/tests/virstoragetest.c
+++ b/tests/virstoragetest.c
@@ -964,7 +964,7 @@ mymain(void)
     /* Rewrite wrap and qcow2 back to 3-deep chain, absolute backing */
     virCommandFree(cmd);
     cmd = virCommandNewArgList(qemuimg, "rebase", "-u", "-f", "qcow2",
-                               "-F", "qcow2", "-b", absraw, "qcow2", NULL);
+                               "-F", "raw", "-b", absraw, "qcow2", NULL);
     if (virCommandRun(cmd, NULL) < 0)
         ret = -1;

-- 
2.24.1




More information about the libvir-list mailing list