[Libguestfs] [v2v PATCH 1/2] test-v2v-fedora-btrfs-conversion: spell out btrfs feature group dependency

Laszlo Ersek lersek at redhat.com
Thu Jan 12 12:01:49 UTC 2023


In case the libguestfs appliance lacks the btrfs feature group, we create
a zero-sized phony Fedora/BTRFS image variant, causing this test case to
fail. In that situation, the test should just be skipped.

Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
 tests/test-v2v-fedora-btrfs-conversion.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-v2v-fedora-btrfs-conversion.sh b/tests/test-v2v-fedora-btrfs-conversion.sh
index c78f8ae246f6..140998933953 100755
--- a/tests/test-v2v-fedora-btrfs-conversion.sh
+++ b/tests/test-v2v-fedora-btrfs-conversion.sh
@@ -27,5 +27,6 @@ set -x
 skip_if_skipped
 f=../test-data/phony-guests/fedora-btrfs.img
 requires test -f $f
+requires test -s $f
 
 $VG virt-v2v --debug-gc -i disk $f -o null



More information about the Libguestfs mailing list