summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-03-31 11:59:55 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-03-31 12:21:40 +0200
commitbc5376b151f4a5993c223de51f0218aa95184471 (patch)
tree23bcdee1131fbee036bb1196465fb12c34233199
parent5034bb8d180a496fc24cd0ac0d8dde2332d28bc2 (diff)
downloadlvm2-bc5376b151f4a5993c223de51f0218aa95184471.tar.gz
tests: do not test settings when MQ is emulated by SMQ
-rw-r--r--test/shell/lvchange-cache.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/shell/lvchange-cache.sh b/test/shell/lvchange-cache.sh
index ca7522ae9..06d2f09ca 100644
--- a/test/shell/lvchange-cache.sh
+++ b/test/shell/lvchange-cache.sh
@@ -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