render / rpms / libvirt

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