summaryrefslogtreecommitdiffstats
path: root/test/test-functions
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-10 12:33:02 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-11-14 13:06:17 +0100
commit14697c4156a337371b9f9691b30fd36814bddf73 (patch)
tree9060bc72b1487c9d20630c9544542281c78e0ccc /test/test-functions
parentrepart: Take into account minimal filesystem size (diff)
downloadsystemd-14697c4156a337371b9f9691b30fd36814bddf73.tar.xz
systemd-14697c4156a337371b9f9691b30fd36814bddf73.zip
repart: Add Minimize= integration test
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index ff0cc963ce..18c76a69ab 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -1346,6 +1346,9 @@ create_empty_image() {
root_size=$((4 * root_size))
data_size=$((2 * data_size))
fi
+ if [ "$IMAGE_NAME" = "repart" ]; then
+ root_size=$((root_size+=1000))
+ fi
echo "Setting up ${IMAGE_PUBLIC:?} (${root_size} MB)"
rm -f "${IMAGE_PRIVATE:?}" "$IMAGE_PUBLIC"