Skip to contentSkip to conversation

master - tests: be happy with less then 90 percent

PATCH Zdenek Kabelac 1 participant 1 message Nov 1, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c67a03727b427f7b6a1ae4375e0d51dfafe2ea42
Commit:        c67a03727b427f7b6a1ae4375e0d51dfafe2ea42
Parent:        dbaa4cdcdf312239f26029cb7f206b54587c407a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Nov 1 16:21:52 2019 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Nov 1 16:31:12 2019 +0100

tests: be happy with less then 90 percent

Thin metadata evolve between kernel version, so it's not always precisely predictible its usage - so let's met test happy, when it gets bellow 90%.

---
 test/shell/lvextend-thin-metadata-dmeventd.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
test/shell/lvextend-thin-metadata-dmeventd.sh +4 -1
index 20b70d3..2f16d48 100644
@@ -111,7 +111,10 @@ lvs -a $vg
 lvextend --use-policies --config "\
 activation/thin_pool_autoextend_percent=1 \
 activation/thin_pool_autoextend_threshold=99" $vg/pool
-test "$(meta_percent_)" -lt "88"
+# Originaly wanted to test <88% -
+#  however some older kernels consume a bit more space, so be happy
+#  when it's <90%
+test "$(meta_percent_)" -lt "90"
 
 # After such operatoin creation of thin LV has to pass
 lvcreate -V20 $vg/pool