summaryrefslogtreecommitdiff
path: root/test/shell/lvcreate-cache.sh
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-09-13 11:30:16 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-09-13 12:25:36 +0200
commit08c94de79895ac94ebc346fc440dbb23eaa98b45 (patch)
treeabc1283f3443902d1d964444b1d2a7661eb39f64 /test/shell/lvcreate-cache.sh
parentd34e315b8dbe3bd469499e62feb02b27aaf7b179 (diff)
downloadlvm2-08c94de79895ac94ebc346fc440dbb23eaa98b45.tar.gz
tests: more permissive on test percent value
Just check there is some output. Values may slightly differ per policy target version.
Diffstat (limited to 'test/shell/lvcreate-cache.sh')
-rw-r--r--test/shell/lvcreate-cache.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/shell/lvcreate-cache.sh b/test/shell/lvcreate-cache.sh
index c53d2430f..bed3ec20d 100644
--- a/test/shell/lvcreate-cache.sh
+++ b/test/shell/lvcreate-cache.sh
@@ -86,11 +86,12 @@ lvcreate --type cache-pool -L1 $vg/cpool
lvcreate -H -L4 -n $lv1 $vg/cpool
check lv_field $vg/$lv1 copy_percent "0.00"
-check lv_field $vg/$lv1 data_percent "0.00"
-check lv_field $vg/$lv1 metadata_percent "0.78"
+# there should be something present (value differs per policy version)
+test -n "$(get lv_field $vg/$lv1 data_percent)"
+test -n "$(get lv_field $vg/$lv1 metadata_percent)"
check lv_field $vg/cpool copy_percent "0.00"
-check lv_field $vg/cpool data_percent "0.00"
-check lv_field $vg/cpool metadata_percent "0.78"
+test -n "$(get lv_field $vg/cpool data_percent)"
+test -n "$(get lv_field $vg/cpool metadata_percent)"
# check we also display percent value for segmented output (-o+devices)
lvs -a -o+devices $vg/cpool | tee out
grep "0.00" out