]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 13 May 2024 14:58:23 +0000 (16:58 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 14 May 2024 10:43:28 +0000 (12:43 +0200)
test/units/TEST-64-UDEV-STORAGE.sh

index aed322fe85f8978e7103397dccc85c0cc7f42793..13e23af1737f4832b3008f756cbf18c99441ddda 100755 (executable)
@@ -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"