Skip to contentSkip to conversation

master - tests: skip some tests for older cache driver

PATCH Zdenek Kabelac 1 participant 1 message Jul 11, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=06a9dab730f5b1636c19ffd47124d76e60447efd
Commit:        06a9dab730f5b1636c19ffd47124d76e60447efd
Parent:        6336b5dedf2a7adbc32fb7ae4f7f7aa1d9cda75a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Jul 11 15:45:28 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 11 15:45:28 2016 +0200

tests: skip some tests for older cache driver

Cache target 1.4 on f19 kernel shows error, skipping some tests...

---
 test/shell/lvchange-cache.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
test/shell/lvchange-cache.sh +6 -0
index 06d2f09..25c59b1 100644
@@ -68,6 +68,10 @@ grep 'migration_threshold=2048' out
 grep 'sequential_threshold=13' out
 grep 'random_threshold=4' out
 
+# Skip these test on older cache driver as it shows errors with these lvchanges
+# device-mapper: space map common: index_check failed: blocknr 17179869216 != wanted 11
+if aux have_cache 1 5 0 ; then
+
 lvchange --cachesettings migration_threshold=233 --cachesettings sequential_threshold=13 --cachesettings random_threshold=1 $vg/corigin
 get lv_field $vg/corigin kernel_cache_settings | tee out
 grep 'migration_threshold=233' out
@@ -80,6 +84,8 @@ grep 'migration_threshold=2048' out
 grep 'sequential_threshold=13' out
 grep 'random_threshold=4' out
 
+fi
+
 else
 # When MQ is emulated by SMQ policy it does not hold settings.
 # So just skip testing of param changes when sequential_threshold=0