summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/25raid456-recovery-while-reshape2
-rw-r--r--tests/25raid456-reshape-corrupt-data8
-rw-r--r--tests/25raid456-reshape-deadlock2
-rw-r--r--tests/25raid456-reshape-while-recovery2
-rw-r--r--tests/25raid456-reshape-while-recovery.broken5
5 files changed, 12 insertions, 7 deletions
diff --git a/tests/25raid456-recovery-while-reshape b/tests/25raid456-recovery-while-reshape
index 3f6251bf..c5e8384c 100644
--- a/tests/25raid456-recovery-while-reshape
+++ b/tests/25raid456-recovery-while-reshape
@@ -2,7 +2,7 @@ devs="$dev0 $dev1 $dev2"
set_up_test()
{
- mdadm -Cv -R -n 3 -l5 $md0 $devs --assume-clean --size=50M || die "create array failed"
+ mdadm -Cv -R -n 3 -l5 $md0 $devs --assume-clean --size=10M || die "create array failed"
mdadm -a $md0 $dev3 $dev4 || die "failed to bind new disk to array"
echo 1000 > /sys/block/md0/md/sync_speed_max
}
diff --git a/tests/25raid456-reshape-corrupt-data b/tests/25raid456-reshape-corrupt-data
index fdb875fb..ebb08da8 100644
--- a/tests/25raid456-reshape-corrupt-data
+++ b/tests/25raid456-reshape-corrupt-data
@@ -2,10 +2,10 @@ devs="$dev0 $dev1 $dev2"
set_up_test()
{
- mdadm -Cv -R -n 3 -l5 $md0 $devs --size=50M || die "create array failed"
+ mdadm -Cv -R -n 3 -l5 $md0 $devs --size=10M || die "create array failed"
mdadm -a $md0 $dev3 || die "failed to bind new disk to array"
- mkfs.xfs -f $md0 || die "mkfs failed"
- xfs_ncheck $md0 || die "check fs failed"
+ mkfs.ext4 -F $md0 || die "mkfs failed"
+ e2fsck -pvf $md0 || die "check fs failed"
}
clean_up_test()
@@ -30,6 +30,6 @@ echo reshape > /sys/block/md0/md/sync_action
mdadm -W $md0
# check if data is corrupted
-xfs_ncheck $md0 || die "data is corrupted after reshape"
+e2fsck -vn $md0 || die "data is corrupted after reshape"
exit 0
diff --git a/tests/25raid456-reshape-deadlock b/tests/25raid456-reshape-deadlock
index bfa0cc56..5c25ae5a 100644
--- a/tests/25raid456-reshape-deadlock
+++ b/tests/25raid456-reshape-deadlock
@@ -2,7 +2,7 @@ devs="$dev0 $dev1 $dev2"
set_up_test()
{
- mdadm -Cv -R -n 3 -l5 $md0 $devs --size=50M || die "create array failed"
+ mdadm -Cv -R -n 3 -l5 $md0 $devs --size=10M || die "create array failed"
mdadm -a $md0 $dev3 || die "failed to bind new disk to array"
echo 1000 > /sys/block/md0/md/sync_speed_max
}
diff --git a/tests/25raid456-reshape-while-recovery b/tests/25raid456-reshape-while-recovery
index b9f871f2..ce6fd264 100644
--- a/tests/25raid456-reshape-while-recovery
+++ b/tests/25raid456-reshape-while-recovery
@@ -2,7 +2,7 @@ devs="$dev0 $dev1 $dev2"
set_up_test()
{
- mdadm -Cv -R -n 3 -l5 $md0 $devs --assume-clean --size=50M || die "create array failed"
+ mdadm -Cv -R -n 3 -l5 $md0 $devs --assume-clean --size=10M || die "create array failed"
mdadm -a $md0 $dev3 $dev4 || die "failed to bind new disk to array"
echo 1000 > /sys/block/md0/md/sync_speed_max
}
diff --git a/tests/25raid456-reshape-while-recovery.broken b/tests/25raid456-reshape-while-recovery.broken
new file mode 100644
index 00000000..468851e5
--- /dev/null
+++ b/tests/25raid456-reshape-while-recovery.broken
@@ -0,0 +1,5 @@
+There are multiple issues with this test:
+- kernel version dependent
+- can fail in multiple ways
+
+Marking this test as broken, so it's not executed by CI.