Skip to contentSkip to conversation

master - tests: skip some without wipefs

PATCH David Teigland 1 participant 1 message Sep 12, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=585db872749a08dd42139cbf4234cbcd50a19683
Commit:        585db872749a08dd42139cbf4234cbcd50a19683
Parent:        82b887a4cfa12f32781cc0dc89c51d89658179a1
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Sep 12 11:23:30 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Sep 12 11:23:30 2019 -0500

tests: skip some without wipefs

---
 test/shell/allow-mixed-block-sizes.sh |    1 +
 test/shell/duplicate-pvs-md0.sh       |    2 ++
 test/shell/duplicate-pvs-md1.sh       |    2 ++
 test/shell/lvm-on-md.sh               |    2 ++
 test/shell/pvcreate-operation-md.sh   |    2 ++
 5 files changed, 9 insertions(+), 0 deletions(-)
test/shell/allow-mixed-block-sizes.sh +1 -0
index 2f0b3a0..ec60bc6 100644
@@ -15,6 +15,7 @@ SKIP_WITH_LVMPOLLD=1
 . lib/inittest
 
 losetup -h | grep sector-size || skip
+wipefs -V || 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
test/shell/duplicate-pvs-md0.sh +2 -0
index 4c7863d..d64da4a 100644
@@ -28,6 +28,8 @@ _clear_online_files() {
 
 . lib/inittest
 
+wipefs -V || skip
+
 test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
         modprobe raid0 || skip
 not grep md0 /proc/mdstat
test/shell/duplicate-pvs-md1.sh +2 -0
index d242e03..d186c0f 100644
@@ -33,6 +33,8 @@ _clear_online_files() {
 
 . lib/inittest
 
+wipefs -V || skip
+
 test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
         modprobe raid1 || skip
 not grep md0 /proc/mdstat
test/shell/lvm-on-md.sh +2 -0
index 6862101..7bcc276 100644
@@ -28,6 +28,8 @@ _clear_online_files() {
 
 . lib/inittest
 
+wipefs -V || skip
+
 test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
 	modprobe raid1 || skip
 not grep md0 /proc/mdstat
test/shell/pvcreate-operation-md.sh +2 -0
index 12cf891..1774d23 100644
@@ -18,6 +18,8 @@ SKIP_WITH_LVMPOLLD=1
 # skip this test if mdadm or sfdisk (or others) aren't available
 which sfdisk || skip
 
+wipefs -V || skip
+
 test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
 	modprobe raid0 || skip
 not grep md0 /proc/mdstat