Skip to contentSkip to conversation

master - tests: skip md tests if system not clean

PATCH David Teigland 1 participant 1 message Sep 27, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9680fd6d78dc9aede50ed797317ec579e4969522
Commit:        9680fd6d78dc9aede50ed797317ec579e4969522
Parent:        0673d13518ac7d058ca70b04c29fd30f4fedeab6
Author:        David Teigland <[email protected]>
AuthorDate:    Fri Sep 27 12:40:42 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Sep 27 12:40:42 2019 -0500

tests: skip md tests if system not clean

---
 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 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
test/shell/duplicate-pvs-md0.sh +1 -1
index d64da4a..d5164ce 100644
@@ -32,7 +32,7 @@ wipefs -V || skip
 
 test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
         modprobe raid0 || skip
-not grep md0 /proc/mdstat
+not grep md0 /proc/mdstat || skip
 
 aux lvmconf 'devices/md_component_detection = 1'
 
test/shell/duplicate-pvs-md1.sh +1 -1
index d186c0f..626c55c 100644
@@ -37,7 +37,7 @@ wipefs -V || skip
 
 test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
         modprobe raid1 || skip
-not grep md0 /proc/mdstat
+not grep md0 /proc/mdstat || skip
 
 aux lvmconf 'devices/md_component_detection = 1'
 
test/shell/lvm-on-md.sh +1 -1
index 7bcc276..a8df814 100644
@@ -32,7 +32,7 @@ wipefs -V || skip
 
 test -f /proc/mdstat && grep -q raid1 /proc/mdstat || \
 	modprobe raid1 || skip
-not grep md0 /proc/mdstat
+not grep md0 /proc/mdstat || skip
 
 aux lvmconf 'devices/md_component_detection = 1'
 
test/shell/pvcreate-operation-md.sh +1 -1
index 1774d23..6e43e5f 100644
@@ -22,7 +22,7 @@ wipefs -V || skip
 
 test -f /proc/mdstat && grep -q raid0 /proc/mdstat || \
 	modprobe raid0 || skip
-not grep md0 /proc/mdstat
+not grep md0 /proc/mdstat || skip
 
 aux lvmconf 'devices/md_component_detection = 1'
 aux extend_filter_md "a|/dev/md|"