summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-06-30 05:19:01 +0000
committerLennart Poettering <lennart@poettering.net>2018-07-02 13:54:26 +0200
commit28c7474e60c3871f713782bf823deef864ce6a9c (patch)
treec0f62f7200a498af646ff1ffd6366cb11bfce077 /test/test-functions
parent11ce0db2e23630fb2f23f6dfd6d937f2b5bd0df2 (diff)
downloadsystemd-28c7474e60c3871f713782bf823deef864ce6a9c.tar.gz
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.
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/test-functions b/test/test-functions
index e69420aeca..1cefec04f5 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" <<EOF
-,390M
+,$((_size-10))M
,
EOF