[lvm-devel] master - tests relative-sign-options: only skip thin part

David Teigland teigland at sourceware.org
Thu Mar 9 17:30:47 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=716c3453343009536daf459f10761bd6f322e221
Commit:        716c3453343009536daf459f10761bd6f322e221
Parent:        43bcd7393ca6d45583d2e64c9a6fcf8a7ed06487
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Thu Mar 9 11:29:54 2017 -0600
Committer:     David Teigland <teigland at redhat.com>
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(-)

diff --git a/test/shell/relative-sign-options.sh b/test/shell/relative-sign-options.sh
index f1dab45..3bf076a 100644
--- a/test/shell/relative-sign-options.sh
+++ b/test/shell/relative-sign-options.sh
@@ -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




More information about the lvm-devel mailing list