Skip to contentSkip to conversation

stable-2.02 - tests: allow-mixed-block-sizes skip with older losetup

PATCH Marian Csontos 1 participant 1 message Sep 24, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=2327f3997bfb70d67299f3dfa45436132e0a8521
Commit:        2327f3997bfb70d67299f3dfa45436132e0a8521
Parent:        9fcda0d9752bf06b619d29aa6738b4ac52acedfc
Author:        David Teigland <[email protected]>
AuthorDate:    Wed Sep 11 13:52:51 2019 -0500
Committer:     Marian Csontos <[email protected]>
CommitterDate: Tue Sep 24 14:08:23 2019 +0200

tests: allow-mixed-block-sizes skip with older losetup

(cherry picked from commit 69b7c00a77e09d23d57eef9d35afb1dc4663478c)

---
 test/shell/allow-mixed-block-sizes.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
test/shell/allow-mixed-block-sizes.sh +2 -0
index 1803256..2f0b3a0 100644
@@ -14,6 +14,8 @@ SKIP_WITH_LVMPOLLD=1
 
 . lib/inittest
 
+losetup -h | grep sector-size || skip
+
 dd if=/dev/zero of=loopa bs=$((1024*1024)) count=2 2> /dev/null
 dd if=/dev/zero of=loopb bs=$((1024*1024)) count=2 2> /dev/null
 LOOP1=$(losetup -f loopa --sector-size 4096 --show)