fbe740
From 81a506d1ac93ce3c5a21ae0dc6906d26074083f6 Mon Sep 17 00:00:00 2001
fbe740
Message-Id: <81a506d1ac93ce3c5a21ae0dc6906d26074083f6@dist-git>
fbe740
From: Peter Krempa <pkrempa@redhat.com>
fbe740
Date: Fri, 28 Feb 2020 10:24:35 +0100
fbe740
Subject: [PATCH] tests: virstorage: Fix backing file format of created image
fbe740
MIME-Version: 1.0
fbe740
Content-Type: text/plain; charset=UTF-8
fbe740
Content-Transfer-Encoding: 8bit
fbe740
fbe740
We create some images for testing our code. We've recorded wrong format
fbe740
of the backing file for one of the images though.
fbe740
fbe740
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
fbe740
Reviewed-by: Ján Tomko <jtomko@redhat.com>
fbe740
(cherry picked from commit e5c8f6e0800106c9331c975344086c7834fcae2a)
fbe740
fbe740
https://bugzilla.redhat.com/show_bug.cgi?id=1798148
fbe740
Message-Id: <fbd88f094ef3e9e43b4395bb7686bb9f6f76fb38.1582881363.git.pkrempa@redhat.com>
fbe740
Reviewed-by: Ján Tomko <jtomko@redhat.com>
fbe740
---
fbe740
 tests/virstoragetest.c | 2 +-
fbe740
 1 file changed, 1 insertion(+), 1 deletion(-)
fbe740
fbe740
diff --git a/tests/virstoragetest.c b/tests/virstoragetest.c
fbe740
index 39040bf4cb..e7794d6168 100644
fbe740
--- a/tests/virstoragetest.c
fbe740
+++ b/tests/virstoragetest.c
fbe740
@@ -964,7 +964,7 @@ mymain(void)
fbe740
     /* Rewrite wrap and qcow2 back to 3-deep chain, absolute backing */
fbe740
     virCommandFree(cmd);
fbe740
     cmd = virCommandNewArgList(qemuimg, "rebase", "-u", "-f", "qcow2",
fbe740
-                               "-F", "qcow2", "-b", absraw, "qcow2", NULL);
fbe740
+                               "-F", "raw", "-b", absraw, "qcow2", NULL);
fbe740
     if (virCommandRun(cmd, NULL) < 0)
fbe740
         ret = -1;
fbe740
 
fbe740
-- 
fbe740
2.25.1
fbe740