From a2cc317c03aeb4963fce03d9d8be93cdf3c3a475 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 3 May 2012 14:21:21 +0100 Subject: virt-make-fs: Add a test of btrfs (regression test for RHBZ#816098). --- tools/test-virt-make-fs.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test-virt-make-fs.sh b/tools/test-virt-make-fs.sh index 8f6ff2e8..80ee4bbb 100755 --- a/tools/test-virt-make-fs.sh +++ b/tools/test-virt-make-fs.sh @@ -29,6 +29,7 @@ perl -MSys::Guestfs '-MSys::Guestfs::Lib qw(feature_available)' -e ' $g->launch (); feature_available ($g, "ntfs3g") and print "ntfs3g_available=yes\n"; feature_available ($g, "ntfsprogs") and print "ntfsprogs_available=yes\n"; + feature_available ($g, "btrfs") and print "btrfs_available=yes\n"; ') declare -a choices @@ -47,6 +48,9 @@ choices=(--type=ext2 --type=ext3 --type=ext4) if [ "$ntfs3g_available" = "yes" -a "$ntfsprogs_available" = "yes" ]; then choices[${#choices[*]}]="--type=ntfs" fi +if [ "$btrfs_available" = "yes" ]; then + choices[${#choices[*]}]="--type=btrfs" +fi type=`random_choice` choices=(--format=raw --format=qcow2) -- cgit