summaryrefslogtreecommitdiffstats
path: root/tests/04r0update
diff options
context:
space:
mode:
authorSong Liu <song@kernel.org>2024-01-10 00:07:16 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-01-16 12:03:27 +0100
commit64a4fcb4c2b91d18955752e76517dee2d17b1647 (patch)
treecc7cb06d4afb40889720d129540f4b037e0ba17f /tests/04r0update
parentmanage: adjust checking subarray state in update_subarray (diff)
downloadmdadm-64a4fcb4c2b91d18955752e76517dee2d17b1647.tar.xz
mdadm-64a4fcb4c2b91d18955752e76517dee2d17b1647.zip
tests: Gate tests for linear flavor with variable LINEAR
linear flavor is being removed in the kernel [1], so tests for the linear flavor will fail. Add detection for linear flavor and --disable-linear option, with the same logic as multipath. [1] https://lore.kernel.org/linux-raid/20231214222107.2016042-1-song@kernel.org/ Signed-off-by: Song Liu <song@kernel.org> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'tests/04r0update')
-rw-r--r--tests/04r0update6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/04r0update b/tests/04r0update
index b95efb06..c495f34a 100644
--- a/tests/04r0update
+++ b/tests/04r0update
@@ -1,5 +1,11 @@
# create a raid0, re-assemble with a different super-minor
+
+if [ "$LINEAR" != "yes" ]; then
+ echo -ne 'skipping... '
+ exit 0
+fi
+
mdadm -CR -e 0.90 $md0 -llinear -n3 $dev0 $dev1 $dev2
testdev $md0 3 $mdsize0 1
minor1=`mdadm -E $dev0 | sed -n -e 's/.*Preferred Minor : //p'`