summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-05-03 14:21:21 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-05-03 14:32:25 +0100
commita2cc317c03aeb4963fce03d9d8be93cdf3c3a475 (patch)
tree492a0c6d64f3061f148e05f1e52c7af70ff4bb33
parentc53ea071c690b1760b89a56f2a634bec00d2b554 (diff)
downloadlibguestfs-a2cc317c03aeb4963fce03d9d8be93cdf3c3a475.tar.gz
libguestfs-a2cc317c03aeb4963fce03d9d8be93cdf3c3a475.tar.xz
libguestfs-a2cc317c03aeb4963fce03d9d8be93cdf3c3a475.zip
virt-make-fs: Add a test of btrfs (regression test for RHBZ#816098).
-rwxr-xr-xtools/test-virt-make-fs.sh4
1 files changed, 4 insertions, 0 deletions
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)