From 28c7474e60c3871f713782bf823deef864ce6a9c Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sat, 30 Jun 2018 05:19:01 +0000 Subject: [PATCH] tests: up the image size a little, use twice that size with STRIP_BINARIES=no to make sure that there's enough room for unstripped binaries. --- test/test-functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test-functions b/test/test-functions index e69420a..1cefec0 100644 --- a/test/test-functions +++ b/test/test-functions @@ -359,14 +359,18 @@ install_missing_libraries() { } create_empty_image() { + local _size=500 + if [[ "$STRIP_BINARIES" = "no" ]]; then + _size=$((2*_size)) + fi 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=400 + dd if=/dev/null of="$TESTDIR/rootdisk.img" bs=1M seek="$_size" LOOPDEV=$(losetup --show -P -f $TESTDIR/rootdisk.img) [ -b "$LOOPDEV" ] || return 1 echo "LOOPDEV=$LOOPDEV" >> $STATEFILE sfdisk "$LOOPDEV" <