From 6c2d47d6d3ad25ffd7527c7f4de31457ee1b25d8 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 13 May 2024 16:58:23 +0200 Subject: [PATCH] TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available --- test/units/TEST-64-UDEV-STORAGE.sh | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.47.3