Skip to contentSkip to conversation

master - tests relative-sign-options: only skip thin part

PATCH David Teigland 1 participant 1 message Mar 9, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=716c3453343009536daf459f10761bd6f322e221
Commit:        716c3453343009536daf459f10761bd6f322e221
Parent:        43bcd7393ca6d45583d2e64c9a6fcf8a7ed06487
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Mar 9 11:29:54 2017 -0600
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Mar 9 11:29:54 2017 -0600

tests relative-sign-options: only skip thin part

---
 test/shell/relative-sign-options.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
test/shell/relative-sign-options.sh +3 -3
index f1dab45..3bf076a 100644
@@ -17,8 +17,6 @@ export LVM_TEST_LVMETAD_DEBUG_OPTS=${LVM_TEST_LVMETAD_DEBUG_OPTS-}
 
 . lib/inittest
 
-aux have_thin 1 0 0 || skip
-
 aux prepare_vg 1 256
 
 lvcreate -an -n $lv1 -l4 $vg
@@ -70,13 +68,15 @@ lvcreate -an -n $lv6 -l1 $vg
 lvresize -y -l+100%FREE $vg/$lv6
 lvremove $vg/$lv6
 
+if aux have_thin 1 0 0 ; then
 # relative poolmetadatasize
-
 lvcreate --type thin-pool -L64 --poolmetadatasize 32 -n $lv7 $vg
 lvresize --poolmetadatasize 64 $vg/$lv7
 lvresize --poolmetadatasize +8 $vg/$lv7
 not lvresize -y --poolmetadatasize -8 $vg/$lv7
 
 lvextend --poolmetadatasize +8 $vg/$lv7
+not lvextend -y --poolmetadatasize -8 $vg/$lv7
+fi
 
 vgremove -y $vg