render / rpms / libvirt

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