]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: don't use "dd" to allocate empty files
authorLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 10:16:48 +0000 (11:16 +0100)
committerLennart Poettering <lennart@amutable.com>
Fri, 6 Feb 2026 17:19:33 +0000 (18:19 +0100)
commitdd2676c1abf26f47f9374c1dcc3757f47992c6fa
tree7cc8f821a884e151c50dec5fbab39f6c828d27fa
parent5f815d6fa1878a0f6c28039f5e2fb0df348dc405
tests: don't use "dd" to allocate empty files

Let's use truncate -s … to create empty files (if they can be sparse)

Let's use fallocate -l … to create empty non-sparse files.

This should reduce the disk footprint of our tests a bit, given that in
most cases we won't use the allocate disk space in full, not even
remotely.
test/units/TEST-13-NSPAWN.machined.sh
test/units/TEST-13-NSPAWN.nspawn.sh
test/units/TEST-17-UDEV.sanity-check.sh
test/units/TEST-50-DISSECT.sh
test/units/TEST-55-OOMD.sh
test/units/TEST-58-REPART.sh
test/units/TEST-64-UDEV-STORAGE.sh
test/units/TEST-67-INTEGRITY.sh
test/units/TEST-87-AUX-UTILS-VM.mount.sh