summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2019-06-20 14:20:35 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2019-06-20 14:20:35 +0200
commit788d89c4127f69c813813e6a192fe44d8c1abc7a (patch)
tree9eda904757fbdd3ba92a99acc3f64c1c2e4802a8
parente0a176f49ab09d2afaea73cafa4d7b41ade0c345 (diff)
downloadlvm2-788d89c4127f69c813813e6a192fe44d8c1abc7a.tar.gz
tests: accept also value 512
Older kernels provide fixed value 512 instead of 0.
-rw-r--r--test/shell/lvchange-cache.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/shell/lvchange-cache.sh b/test/shell/lvchange-cache.sh
index ab7c8b056..93c8c3b55 100644
--- a/test/shell/lvchange-cache.sh
+++ b/test/shell/lvchange-cache.sh
@@ -88,7 +88,8 @@ 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
+# or some older kernel instancies show also value 512
+grep 'sequential_threshold=0' out || grep 'sequential_threshold=512' out
fi
fi # have_cache 1 5 0