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

tests: skip new lvresize tests when missing new libblkid

This commit is contained in:
David Teigland 2022-09-13 15:37:10 -05:00
parent 264827cb98
commit bf386411b8
3 changed files with 20 additions and 0 deletions

View File

@ -22,6 +22,13 @@ export LVM_TEST_PREFER_BRD=0
aux prepare_vg 1 300
# Tests require a libblkid version that shows FSLASTBLOCK
lvcreate -n $lv1 -L 100 $vg
mkfs.ext4 "$DM_DEV_DIR/$vg/$lv1"
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
lvchange -an $vg
lvremove $vg/$lv1
# set to "skip" to avoid testing given fs and test warning result
# i.e. check_reiserfs=skip
check_ext2=

View File

@ -17,6 +17,13 @@ SKIP_WITH_LVMPOLLD=1
aux prepare_vg 3 256
# Tests require a libblkid version that shows FSLASTBLOCK
lvcreate -n $lv1 -L 300 $vg
mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
lvchange -an $vg
lvremove $vg/$lv1
mount_dir="mnt_lvresize_cr"
mkdir -p "$mount_dir"

View File

@ -28,6 +28,12 @@ aux prepare_vg 3 256
mount_dir="mnt_lvresize_fs"
mkdir -p "$mount_dir"
# Tests require a libblkid version that shows FSLASTBLOCK
lvcreate -n $lv1 -L 300 $vg
mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
blkid -p "$DM_DEV_DIR/$vg/$lv1" | grep FSLASTBLOCK || skip
lvchange -an $vg
lvremove $vg/$lv1
#
# lvextend, no fs