test: increase loop device size to 400MB
authorDaniel Mack <daniel@zonque.org>
Thu, 19 Nov 2015 12:13:31 +0000 (13:13 +0100)
committerDaniel Mack <daniel@zonque.org>
Thu, 19 Nov 2015 13:25:32 +0000 (14:25 +0100)
It turns out the full OS tree which is assembled into the loop-dev
mount point is bigger than 300MB. Increase the size.

test/test-functions

index a6eea66..0a9d4f8 100644 (file)
@@ -142,12 +142,12 @@ install_missing_libraries() {
 create_empty_image() {
     rm -f "$TESTDIR/rootdisk.img"
     # Create the blank file to use as a root filesystem
-    dd if=/dev/null of="$TESTDIR/rootdisk.img" bs=1M seek=300
+    dd if=/dev/null of="$TESTDIR/rootdisk.img" bs=1M seek=400
     LOOPDEV=$(losetup --show -P -f $TESTDIR/rootdisk.img)
     [ -b "$LOOPDEV" ] || return 1
     echo "LOOPDEV=$LOOPDEV" >> $STATEFILE
     sfdisk "$LOOPDEV" <<EOF
-,290M
+,390M
 ,
 EOF