]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm/tests: mark 10ddf-fail-two-spares broken
authorXiao Ni <xni@redhat.com>
Thu, 8 May 2025 04:45:32 +0000 (12:45 +0800)
committerXiaoNi87 <xni@redhat.com>
Thu, 8 May 2025 15:30:38 +0000 (23:30 +0800)
Sometimes 10ddf-fail-two-spares fail because:
++ grep -q 'state\[1\] : Optimal, Consistent' /tmp/mdtest-5k3MzO
++ echo ERROR: /dev/md/vol1 should be optimal in meta data
ERROR: /dev/md/vol1 should be optimal in meta data

Mark this as broken.

Signed-off-by: Xiao Ni <xni@redhat.com>
tests/10ddf-fail-two-spares.broken [new file with mode: 0644]

diff --git a/tests/10ddf-fail-two-spares.broken b/tests/10ddf-fail-two-spares.broken
new file mode 100644 (file)
index 0000000..d0158c0
--- /dev/null
@@ -0,0 +1,11 @@
+Sometimes
+
+++ grep -q 'state\[0\] : Optimal, Consistent' /tmp/mdtest-5k3MzO
+++ grep -q 'state\[1\] : Optimal, Consistent' /tmp/mdtest-5k3MzO
+++ echo ERROR: /dev/md/vol1 should be optimal in meta data
+ERROR: /dev/md/vol1 should be optimal in meta data
+
+if ! grep -q 'state\[1\] : Optimal, Consistent' $tmp; then
+    echo ERROR: $member1 should be optimal in meta data
+    ret=1
+fi