From: Karel Zak Date: Wed, 23 Nov 2022 08:10:39 +0000 (+0100) Subject: tests: check for loopdevs X-Git-Tag: v2.39-rc1~224 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a5b859fe4e9e1708da46d7a334949504cec0b73;p=thirdparty%2Futil-linux.git tests: check for loopdevs Signed-off-by: Karel Zak --- diff --git a/tests/ts/mount/complex b/tests/ts/mount/complex index 695716863d..98c5715b09 100755 --- a/tests/ts/mount/complex +++ b/tests/ts/mount/complex @@ -18,6 +18,7 @@ ts_init "$*" ts_check_test_command "$TS_CMD_MOUNT" ts_skip_nonroot +ts_check_losetup $TS_CMD_MOUNT --version | grep -q 'fd-based' || ts_skip "no fd-based API" diff --git a/tests/ts/mount/subdir b/tests/ts/mount/subdir index d525fa5166..04ba6dc1cd 100755 --- a/tests/ts/mount/subdir +++ b/tests/ts/mount/subdir @@ -23,6 +23,7 @@ ts_init "$*" ts_check_test_command "$TS_CMD_MOUNT" ts_skip_nonroot +ts_check_losetup ts_device_init DEVICE=$TS_LODEV