master - tests: do not test settings when MQ is emulated by SMQ
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=bc5376b151f4a5993c223de51f0218aa95184471 Commit: bc5376b151f4a5993c223de51f0218aa95184471 Parent: 5034bb8d180a496fc24cd0ac0d8dde2332d28bc2 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Mar 31 11:59:55 2016 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Mar 31 12:21:40 2016 +0200
tests: do not test settings when MQ is emulated by SMQ
--- test/shell/lvchange-cache.sh | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
test/shell/lvchange-cache.sh +8 -1
@@ -48,7 +48,8 @@ get lv_field $vg/corigin kernel_cache_settings | grep 'migration_threshold=333' lvchange --cachesettings 'migration_threshold = 233 sequential_threshold = 13' $vg/corigin get lv_field $vg/corigin kernel_cache_settings | tee out grep 'migration_threshold=233' out -grep 'sequential_threshold=13' out + +if grep 'sequential_threshold=13' out ; then lvchange --cachesettings 'migration_threshold = 17' $vg/corigin get lv_field $vg/corigin kernel_cache_settings | tee out
@@ -79,4 +80,10 @@ grep 'migration_threshold=2048' out grep 'sequential_threshold=13' out grep 'random_threshold=4' out +else +# When MQ is emulated by SMQ policy it does not hold settings. +# So just skip testing of param changes when sequential_threshold=0 +grep 'sequential_threshold=0' out +fi + vgremove -f $vg