main - tests: skip new lvresize tests when missing new libblkid
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=bf386411b87047e37e394b3c46c336507c80bd68 Commit: bf386411b87047e37e394b3c46c336507c80bd68 Parent: 264827cb98458f7100456eeebf7fdde8dcbc0ad4 Author: David Teigland <[email protected]> AuthorDate: Tue Sep 13 15:37:10 2022 -0500 Committer: David Teigland <[email protected]> CommitterDate: Tue Sep 13 15:37:10 2022 -0500
tests: skip new lvresize tests when missing new libblkid
--- test/shell/fsadm-crypt-fsresize.sh | 7 +++++++ test/shell/lvresize-fs-crypt.sh | 7 +++++++ test/shell/lvresize-fs.sh | 6 ++++++ 3 files changed, 20 insertions(+)
test/shell/fsadm-crypt-fsresize.sh +7 -0
@@ -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=
test/shell/lvresize-fs-crypt.sh +7 -0
@@ -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"
test/shell/lvresize-fs.sh +6 -0
@@ -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