]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: bump disk sizes for some test cases 40583/head
authorLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 11:16:15 +0000 (12:16 +0100)
committerLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 17:19:33 +0000 (18:19 +0100)
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.

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

index e48a2776abc403d5605c31b28009839dc2f659aa..34307f3c8b16264809fa56ead4247cc469be009d 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 d17c08c02ab86272c3196a17946dd29503223d3a..c2fa9eaaf89409e501dbf38fe3ed2c1836fb2517 100755 (executable)
@@ -77,7 +77,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