1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

tests: skip some without wipefs

This commit is contained in:
David Teigland 2019-09-12 11:23:30 -05:00
parent 82b887a4cf
commit 585db87274
5 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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