diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-12-02 10:17:34 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mtkaczyk@kernel.org> | 2024-12-13 10:08:10 +0100 |
commit | 064ce6024dece05a31956e348b69f661645a0cb1 (patch) | |
tree | ea2dd61d33c4d42151f134c50cd73239f303b795 | |
parent | mdadm: remove bitmap file support (diff) | |
download | mdadm-064ce6024dece05a31956e348b69f661645a0cb1.tar.xz mdadm-064ce6024dece05a31956e348b69f661645a0cb1.zip |
tests: fix tests 25raid246
This commit fixes tests 25raid246 so CI can pass.
Details:
- Change array size to 10M.
- Change filesystem from xfc to ext4 (more distros should have toolset
out of the box).
- Mark 25raid456-reshape-while-recovery as broken. It's too much effort
to fix it for now.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
-rw-r--r-- | tests/25raid456-recovery-while-reshape | 2 | ||||
-rw-r--r-- | tests/25raid456-reshape-corrupt-data | 8 | ||||
-rw-r--r-- | tests/25raid456-reshape-deadlock | 2 | ||||
-rw-r--r-- | tests/25raid456-reshape-while-recovery | 2 | ||||
-rw-r--r-- | tests/25raid456-reshape-while-recovery.broken | 5 |
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. |