summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-72.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 02:19:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 02:19:38 +0000
commit9aec250ec2362c12c8e6be62ab21b8269bbb4c65 (patch)
treebe3fb598e4ba731ca2e02861dad906f61823cdd2 /test/units/testsuite-72.sh
parentAdding debian version 252.23-1~deb12u1. (diff)
downloadsystemd-9aec250ec2362c12c8e6be62ab21b8269bbb4c65.tar.xz
systemd-9aec250ec2362c12c8e6be62ab21b8269bbb4c65.zip
Merging upstream version 252.25.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/units/testsuite-72.sh')
-rwxr-xr-xtest/units/testsuite-72.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/units/testsuite-72.sh b/test/units/testsuite-72.sh
index 9effc98..d6c20ef 100755
--- a/test/units/testsuite-72.sh
+++ b/test/units/testsuite-72.sh
@@ -12,6 +12,15 @@ if ! test -x "$SYSUPDATE"; then
exit 0
fi
+# Loopback devices may not be supported. They are used because sfdisk cannot
+# change the sector size of a file, and we want to test both 512 and 4096 byte
+# sectors. If loopback devices are not supported, we can only test one sector
+# size, and the underlying device is likely to have a sector size of 512 bytes.
+if [[ ! -e /dev/loop-control ]]; then
+ echo "No loopback device support"
+ SECTOR_SIZES="512"
+fi
+
export SYSTEMD_PAGER=cat
export SYSTEMD_LOG_LEVEL=debug