From: Evgeny Vereshchagin Date: Sat, 30 Jun 2018 05:19:01 +0000 (+0000) Subject: tests: up the image size a little, use twice that size with STRIP_BINARIES=no X-Git-Tag: v240~1012 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28c7474e60c3871f713782bf823deef864ce6a9c;p=thirdparty%2Fsystemd.git 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. --- diff --git a/test/test-functions b/test/test-functions index e69420aecad..1cefec04f55 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" <