Skip to contentSkip to conversation

master - tests: skip raid testing on 4.[1, 2] fc24 kernels

PATCH Zdenek Kabelac 1 participant 1 message Sep 8, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=596ec5c74b604de42f105032b7e13065ea67d281
Commit:        596ec5c74b604de42f105032b7e13065ea67d281
Parent:        0ec64370b24acf837c725b614db993a663cc8103
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Sep 8 12:00:12 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Sep 8 12:12:38 2015 +0200

tests: skip raid testing on 4.[1,2] fc24 kernels

Hopefull 4.3 will be fixed and test will be updated to let raid test running again.

Meanwhile using md-raid may effectively kill kernel, so leave at least other tests running.

---
 test/lib/aux.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
test/lib/aux.sh +8 -0
index f870501..25700f6 100644
@@ -1108,6 +1108,14 @@ have_raid() {
 		return 1;
 	}
 	target_at_least dm-raid "$@"
+
+	# some kernels have broken mdraid bitmaps, don't use them!
+	# may oops kernel, we know for sure all FC24 are currently broken
+	# in general any 4.1, 4.2 is likely useless unless patched
+	# hopefully 4.3 will be patched
+	case "$(uname -r)" in
+	  4.[123].*fc24*) return 1 ;;
+	esac
 }
 
 have_cache() {