virt-make-fs: Add a test of btrfs (regression test for RHBZ#816098).

This commit is contained in:
Richard W.M. Jones
2012-05-03 14:21:21 +01:00
parent c53ea071c6
commit a2cc317c03

View File

@@ -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)