]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: bump disk sizes for some test cases
authorLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 11:16:15 +0000 (12:16 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 21:57:04 +0000 (21:57 +0000)
In my testing I switched building my locally run CI integration tests to
ArchLinux and realized that for that the default sizes don't work
anymore, the images are larger than the space allocated. Let's bump the
size by 50% for the relevant disk images.

(cherry picked from commit ab89fad427b7bee6f3102708bf8bdf15fd607d9e)
(cherry picked from commit b1ce991244425abe76c3a217af4b271c437b997f)
(cherry picked from commit 6a8f10b9557eeaa94175dcf93ba9e1811badfbef)

test/units/TEST-13-NSPAWN.machined.sh
test/units/TEST-13-NSPAWN.nspawn.sh

index ee2fdb132329d0b4ed33da1ec8b787f1f9127c74..aeff2d8fc5e8916691fea1f3f1cef341eb52575a 100755 (executable)
@@ -190,7 +190,7 @@ test ! -d /var/lib/machines/.hidden1
 
 # Prepare a simple raw container
 mkdir -p /tmp/mnt
-truncate -s 256M /var/tmp/container.raw
+truncate -s 384M /var/tmp/container.raw
 mkfs.ext4 /var/tmp/container.raw
 mount -o loop /var/tmp/container.raw /tmp/mnt
 cp -r /var/lib/machines/container1/* /tmp/mnt
index 841a75b8dd63b6cab175a202ac5cc0147172c8c5..9c9bbb6507f4e305f374ff2d07405583e7744371 100755 (executable)
@@ -86,7 +86,7 @@ testcase_sanity() {
     create_dummy_container "$template"
     # Create a simple image from the just created container template
     image="$(mktemp /var/lib/machines/TEST-13-NSPAWN.image-XXX.img)"
-    truncate -s 256M "$image"
+    truncate -s 384M "$image"
     mkfs.ext4 "$image"
     mkdir -p /mnt
     mount -o loop "$image" /mnt