1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: skip test without mkfs.ext4

This commit is contained in:
Zdenek Kabelac 2023-02-10 23:07:52 +01:00
parent 2241982f96
commit 7ea62f640c

View File

@ -23,6 +23,8 @@ export LVM_TEST_PREFER_BRD=0
aux prepare_vg 1 300 aux prepare_vg 1 300
# Tests require a libblkid version that shows FSLASTBLOCK # Tests require a libblkid version that shows FSLASTBLOCK
which mkfs.ext4 || skip
lvcreate -n $lv1 -L 100 $vg lvcreate -n $lv1 -L 100 $vg
mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1" mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip