From: Daan De Meyer Date: Mon, 13 May 2024 14:58:23 +0000 (+0200) Subject: TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available X-Git-Tag: v256-rc2~18^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c2d47d6d3ad25ffd7527c7f4de31457ee1b25d8;p=thirdparty%2Fsystemd.git TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available --- diff --git a/test/units/TEST-64-UDEV-STORAGE.sh b/test/units/TEST-64-UDEV-STORAGE.sh index aed322fe85f..13e23af1737 100755 --- a/test/units/TEST-64-UDEV-STORAGE.sh +++ b/test/units/TEST-64-UDEV-STORAGE.sh @@ -717,6 +717,11 @@ testcase_btrfs_basic() { /dev/disk/by-id/scsi-0systemd_foobar_deadbeefbtrfs{0..3} ) + if ! modinfo btrfs; then + echo "This test requires the btrfs kernel module but it is not installed, skipping the test" | tee --append /skipped + exit 77 + fi + ls -l "${devices[@]}" echo "Single device: default settings"