[Libguestfs] [PATCH v2v 1/3] tests/test-v2v-trim.sh: Use -of qcow2 to preserve output format

Richard W.M. Jones rjones at redhat.com
Wed Jan 19 18:57:47 UTC 2022


Old virt-v2v used the same output format as input format when doing
disk to disk copies.  Modular virt-v2v doesn't do this, it requires
using -of to set the output format to the same as the input format if
that is desired.
---
 tests/test-v2v-trim.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-v2v-trim.sh b/tests/test-v2v-trim.sh
index 8eab4792b2..ed6c031df3 100755
--- a/tests/test-v2v-trim.sh
+++ b/tests/test-v2v-trim.sh
@@ -66,7 +66,7 @@ fi
 
 virt-v2v --debug-gc \
          -i disk $d/fedora.qcow2 \
-         -o local -os $d
+         -o local -of qcow2 -os $d
 
 # Test the libvirt XML metadata and a disk was created.
 test -f $d/fedora.xml
-- 
2.32.0




More information about the Libguestfs mailing list