Skip to contentSkip to conversation

stable-2.02 - tests: accept also value 512

PATCH Zdenek Kabelac 1 participant 1 message Jun 25, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=788d89c4127f69c813813e6a192fe44d8c1abc7a
Commit:        788d89c4127f69c813813e6a192fe44d8c1abc7a
Parent:        e0a176f49ab09d2afaea73cafa4d7b41ade0c345
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Jun 20 14:20:35 2019 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Jun 20 14:20:35 2019 +0200

tests: accept also value 512

Older kernels provide fixed value 512 instead of 0.

---
 test/shell/lvchange-cache.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
test/shell/lvchange-cache.sh +2 -1
index ab7c8b0..93c8c3b 100644
@@ -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