Skip to contentSkip to conversation

master - tests: snapshot now respects threshold

PATCH Zdenek Kabelac 1 participant 1 message Oct 25, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=76b49318b7b1d99f16ecf8069d4cb1786bfc124f
Commit:        76b49318b7b1d99f16ecf8069d4cb1786bfc124f
Parent:        9139d7a4bbaf0b6944802b7c6f893e23b59633f7
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Oct 25 23:44:58 2015 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sun Oct 25 23:44:58 2015 +0100

tests: snapshot now respects threshold

---
 test/shell/snapshot-usage.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
test/shell/snapshot-usage.sh +3 -3
index ed9d8cb..d15eee1 100644
@@ -169,13 +169,13 @@ lvcreate -s -l12 $vg1/lvol0
 fill 1K
 check lv_field $vg1/lvol1 data_percent "100.00"
 
-# Check it resizes 100% full valid snapshot
+# Check it resizes 100% full valid snapshot to fit threshold
 lvextend --use-policies $vg1/lvol1
-check lv_field $vg1/lvol1 data_percent "80.00"
+check lv_field $vg1/lvol1 data_percent "50.00"
 
 fill 4K
 lvextend --use-policies $vg1/lvol1
-check lv_field $vg1/lvol1 size "18.00k"
+check lv_field $vg1/lvol1 size "24.00k"
 
 lvextend -l+33 $vg1/lvol1
 check lv_field $vg1/lvol1 size "$EXPECT3"