Blame SOURCES/lvm2-2_03_12-tests-update-thin-and-cache-checked-messages.patch

abb29f
 test/shell/lvconvert-thin.sh    |  2 +-
abb29f
 test/shell/lvcreate-cache.sh    | 12 +++++-------
abb29f
 test/shell/lvcreate-thin-big.sh | 10 +++++-----
abb29f
 3 files changed, 11 insertions(+), 13 deletions(-)
abb29f
abb29f
diff --git a/test/shell/lvconvert-thin.sh b/test/shell/lvconvert-thin.sh
abb29f
index 1319655..ee85691 100644
abb29f
--- a/test/shell/lvconvert-thin.sh
abb29f
+++ b/test/shell/lvconvert-thin.sh
abb29f
@@ -128,7 +128,7 @@ lvcreate -L1T -n $lv1 $vg
abb29f
 lvcreate -L32G -n $lv2 $vg
abb29f
 # Warning about bigger then needed
abb29f
 lvconvert --yes --thinpool $vg/$lv1 --poolmetadata $vg/$lv2 2>&1 | tee err
abb29f
-grep "WARNING: Maximum" err
abb29f
+grep -i "maximum" err
abb29f
 lvremove -f $vg
abb29f
 
abb29f
 
abb29f
diff --git a/test/shell/lvcreate-cache.sh b/test/shell/lvcreate-cache.sh
abb29f
index 2c46e21..4d9d75e 100644
abb29f
--- a/test/shell/lvcreate-cache.sh
abb29f
+++ b/test/shell/lvcreate-cache.sh
abb29f
@@ -27,7 +27,6 @@ aux prepare_vg 5 80000
abb29f
 
abb29f
 aux lvmconf 'global/cache_disabled_features = [ "policy_smq" ]'
abb29f
 
abb29f
-
abb29f
 #######################
abb29f
 # Cache_Pool creation #
abb29f
 #######################
abb29f
@@ -173,17 +172,16 @@ dmsetup table ${vg}-$lv1 | grep cache  # ensure it is loaded in kernel
abb29f
 
abb29f
 lvremove -f $vg
abb29f
 
abb29f
-
abb29f
 # Check minimum cache pool metadata size
abb29f
-lvcreate -l 1 --type cache-pool --poolmetadatasize 1 $vg 2>out
abb29f
-grep "WARNING: Minimum" out
abb29f
+lvcreate -l 1 --type cache-pool --poolmetadatasize 1 $vg 2>&1 | tee out
abb29f
+grep -i "minimal" out
abb29f
+
abb29f
 
abb29f
 # FIXME: This test is failing in allocator with smaller VG sizes
abb29f
-lvcreate -l 1 --type cache-pool --poolmetadatasize 17G $vg 2>out
abb29f
-grep "WARNING: Maximum" out
abb29f
+lvcreate -l 1 --type cache-pool --poolmetadatasize 17G $vg 2>&1 | tee out
abb29f
+grep -i "maximum" out
abb29f
 
abb29f
 lvremove -f $vg
abb29f
-
abb29f
 ########################################
abb29f
 # Cache conversion and r/w permissions #
abb29f
 ########################################
abb29f
diff --git a/test/shell/lvcreate-thin-big.sh b/test/shell/lvcreate-thin-big.sh
abb29f
index 0b622b7..2549035 100644
abb29f
--- a/test/shell/lvcreate-thin-big.sh
abb29f
+++ b/test/shell/lvcreate-thin-big.sh
abb29f
@@ -31,14 +31,14 @@ vgcreate $SHARED -s 64K "$vg" "${DEVICES[@]}"
abb29f
 
abb29f
 # Size 0 is not valid
abb29f
 invalid lvcreate -L4M --chunksize 128 --poolmetadatasize 0 -T $vg/pool1 2>out
abb29f
-lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 2>out
abb29f
-grep "WARNING: Minimum" out
abb29f
+lvcreate -Zn -L4M --chunksize 128 --poolmetadatasize 16k -T $vg/pool1 2>&1 >out
abb29f
+grep -i "minimal" out
abb29f
 # FIXME: metadata allocation fails, if PV doesn't have at least 16GB
abb29f
 # i.e. pool metadata device cannot be multisegment
abb29f
-lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>out
abb29f
-grep "WARNING: Maximum" out
abb29f
+lvcreate -Zn -L4M --chunksize 64k --poolmetadatasize 17G -T $vg/pool2 2>&1 >out
abb29f
+grep "maximum" out
abb29f
 check lv_field $vg/pool1_tmeta size "2.00m"
abb29f
-check lv_field $vg/pool2_tmeta size "15.81g"
abb29f
+check lv_field $vg/pool2_tmeta size "<15.88g"
abb29f
 
abb29f
 # Check we do report correct percent values.
abb29f
 lvcreate --type zero -L3G $vg -n pool3