summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorNeil Williams <codehelp@debian.org>2016-01-23 15:59:31 +0000
committerNeil Williams <codehelp@debian.org>2016-01-23 16:37:51 +0000
commit57ed283dc22e650e87293854cea6f5a4e4fa9e6c (patch)
tree20e7a5fef631c1474d7cf0e7fa65a1381dab38c9 /yarns
parent99e7836b7d1ac552dbd5ec3e170fd62022d07493 (diff)
downloadvmdebootstrap-57ed283dc22e650e87293854cea6f5a4e4fa9e6c.tar.gz
Support btrfs filesystem
Sunil Mohan Adapa <sunil@medhas.org> - Do not pass errors=remount-ro mount flag for btrfs filesystems. Btrfs has this behavior by default and does not support the flag. - Add test scenario for btrfs. Check filesystem type and fstab entry. - Expand ext4 test to check for expected fstab entry. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741223
Diffstat (limited to 'yarns')
-rw-r--r--yarns/300-slow-build-tests.yarn11
1 files changed, 11 insertions, 0 deletions
diff --git a/yarns/300-slow-build-tests.yarn b/yarns/300-slow-build-tests.yarn
index 2ceae72..74d999f 100644
--- a/yarns/300-slow-build-tests.yarn
+++ b/yarns/300-slow-build-tests.yarn
@@ -28,6 +28,7 @@ These tests are slow, since building images is slow.
AND partition 1 has the boot flag set
AND partition 1 has an ext4 filesystem
AND partition 1 has file /boot/grub/grub.cfg matching ^### BEGIN /etc/grub.d/00_header ###$
+ AND partition 1 has file /etc/fstab matching ^\S+\s+\/\s+ext4\s+errors=remount-ro\s+\d\s+\d$
SCENARIO build a Debian 8 image with uefi
ASSUMING build tests are requested
@@ -37,3 +38,13 @@ These tests are slow, since building images is slow.
AND the partition count of the image is 2
AND partition 1 has an vfat filesystem
AND partition 2 has file /boot/grub/grub.cfg matching ^### BEGIN /etc/grub.d/00_header ###$
+
+ SCENARIO build a Debian 8 image with btrfs
+ ASSUMING build tests are requested
+ GIVEN user wants to build an image FOO.img that is 2GiB in size
+ WHEN the user runs vmdebootstrap --roottype=btrfs
+ THEN the image has the correct size
+ AND the partition count of the image is 1
+ AND partition 1 has the boot flag set
+ AND partition 1 has an btrfs filesystem
+ AND partition 1 has file /etc/fstab matching ^\S+\s+\/\s+btrfs\s+defaults\s+\d\s+\d$