Skip to contentSkip to conversation

main - tests: skip lvresize tests without mkfs.xfs

PATCH David Teigland 1 participant 1 message Oct 10, 2022

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fc01dd89006bc0a37351cca9332244bfa8d2f096
Commit:        fc01dd89006bc0a37351cca9332244bfa8d2f096
Parent:        13c63f0cfa22a0bc89b8d528b8e2301c49fc7b0d
Author:        David Teigland <[email protected]>
AuthorDate:    Mon Oct 10 13:25:50 2022 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Mon Oct 10 13:25:50 2022 -0500

tests: skip lvresize tests without mkfs.xfs

---
 test/shell/lvresize-fs-crypt.sh | 2 ++
 test/shell/lvresize-fs.sh       | 2 ++
 2 files changed, 4 insertions(+)
test/shell/lvresize-fs-crypt.sh +2 -0
index 0fbb2716e..e7b8b9426 100644
@@ -17,6 +17,8 @@ SKIP_WITH_LVMPOLLD=1
 
 aux prepare_vg 3 256
 
+which mkfs.xfs || skip
+
 # Tests require a libblkid version that shows FSLASTBLOCK
 lvcreate -n $lv1 -L 300 $vg
 mkfs.xfs -f "$DM_DEV_DIR/$vg/$lv1"
test/shell/lvresize-fs.sh +2 -0
index e4d315b95..d4b6484c0 100644
@@ -17,6 +17,8 @@ SKIP_WITH_LVMPOLLD=1
 
 aux prepare_vg 3 256
 
+which mkfs.xfs || skip
+
 # Test combinations of the following:
 # lvreduce / lvextend
 # no fs / ext4 / xfs