summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiao Ni <xni@redhat.com>2024-09-11 10:54:27 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-09-23 10:48:47 +0200
commit098337f31de3f0683cd99727104c81db81fda9cd (patch)
tree4dfad7ef754ea47ead6f434bb19a089f5f31ce7d
parentmdadm/Grow: sleep a while after removing disk in impose_level (diff)
downloadmdadm-098337f31de3f0683cd99727104c81db81fda9cd.tar.xz
mdadm-098337f31de3f0683cd99727104c81db81fda9cd.zip
mdadm/tests: wait until level changes
check wait waits reshape finishes, but it doesn't wait level changes. The level change happens in a forked child progress. So we need to search the child progress and monitor it. Signed-off-by: Xiao Ni <xni@redhat.com> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
-rw-r--r--tests/05r6tor04
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/05r6tor0 b/tests/05r6tor0
index 2fd51f2e..b2685b72 100644
--- a/tests/05r6tor0
+++ b/tests/05r6tor0
@@ -13,6 +13,10 @@ check raid5
testdev $md0 3 19456 512
mdadm -G $md0 -l0
check wait; sleep 1
+while ps auxf | grep "mdadm -G" | grep -v grep
+do
+ sleep 1
+done
check raid0
testdev $md0 3 19456 512
mdadm -G $md0 -l5 --add $dev3 $dev4