Skip to contentSkip to conversation

main - tests: Skip test killing kernel

PATCH Marian Csontos 1 participant 1 message Mar 10, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d4293b579df61b5eb96dfcce5a7ec8f2116e9561
Commit:        d4293b579df61b5eb96dfcce5a7ec8f2116e9561
Parent:        6097dfb9ad2faae1c28295b35e1fba82cb4b6f8b
Author:        Marian Csontos <[email protected]>
AuthorDate:    Wed Mar 10 15:50:35 2021 +0100
Committer:     Marian Csontos <[email protected]>
CommitterDate: Wed Mar 10 16:31:04 2021 +0100

tests: Skip test killing kernel

Fix the pattern and for now skip all RHEL-8.4 kernels

Bug 1916891

---
 test/shell/lvconvert-raid-reshape-stripes-load-reload.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
test/shell/lvconvert-raid-reshape-stripes-load-reload.sh +5 -1
index 6fe34250a..3023782dd 100644
@@ -22,7 +22,11 @@ which mkfs.ext4 || skip
 aux have_raid 1 13 2 || skip
 
 case "$(uname -r)" in
-  5.[891]*|3.10.0-862*|4.18.0-283.el8) die "Cannot run this test on unfixed kernel." ;;
+  5.[891]*|3.10.0-862*) die "Cannot run this test on unfixed kernel." ;;
+  4.18.0-*.el8*)
+    REL="$(uname -r)"
+    REL="${REL#4.18.0-}"
+    [[ "${REL%%.*}" -lt 283 ]] || die "Cannot run this test on unfixed kernel." ;;
 esac
 
 mount_dir="mnt"