mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
tests: more permissive on test percent value
Just check there is some output. Values may slightly differ per policy target version.
This commit is contained in:
parent
d34e315b8d
commit
08c94de798
@ -86,11 +86,12 @@ lvcreate --type cache-pool -L1 $vg/cpool
|
|||||||
lvcreate -H -L4 -n $lv1 $vg/cpool
|
lvcreate -H -L4 -n $lv1 $vg/cpool
|
||||||
|
|
||||||
check lv_field $vg/$lv1 copy_percent "0.00"
|
check lv_field $vg/$lv1 copy_percent "0.00"
|
||||||
check lv_field $vg/$lv1 data_percent "0.00"
|
# there should be something present (value differs per policy version)
|
||||||
check lv_field $vg/$lv1 metadata_percent "0.78"
|
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 copy_percent "0.00"
|
||||||
check lv_field $vg/cpool data_percent "0.00"
|
test -n "$(get lv_field $vg/cpool data_percent)"
|
||||||
check lv_field $vg/cpool metadata_percent "0.78"
|
test -n "$(get lv_field $vg/cpool metadata_percent)"
|
||||||
# check we also display percent value for segmented output (-o+devices)
|
# check we also display percent value for segmented output (-o+devices)
|
||||||
lvs -a -o+devices $vg/cpool | tee out
|
lvs -a -o+devices $vg/cpool | tee out
|
||||||
grep "0.00" out
|
grep "0.00" out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user