Skip to contentSkip to conversation

master - TEST (lvresize-raid): Don't run test when RAID module doesn't exist

PATCH Jonathan Brassow 1 participant 1 message Jul 17, 2012

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=00d9bf8107b47e51fc966dd5bd78789190c6e846
Commit:        00d9bf8107b47e51fc966dd5bd78789190c6e846
Parent:        3f5cdf20cd65173cc36f765ebe68134299c9cbc8
Author:        Jonathan Brassow <[email protected]>
AuthorDate:    Tue Jul 17 10:50:21 2012 -0500
Committer:     Jonathan Brassow <[email protected]>
CommitterDate: Tue Jul 17 10:50:21 2012 -0500

TEST (lvresize-raid): Don't run test when RAID module doesn't exist

Check for RAID module and skip test if not there.

---
 test/shell/lvresize-raid.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
test/shell/lvresize-raid.sh +2 -0
index c6c5dd1..ea5cc80 100644
@@ -11,6 +11,8 @@
 
 . lib/test
 
+aux target_at_least dm-raid 1 1 0 || skip
+
 aux prepare_vg 5 80
 
 # Extend a 2-way RAID1