Skip to contentSkip to conversation

master - tests: wait for raid in sync

PATCH Zdenek Kabelac 1 participant 1 message May 29, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=597b3576c7399d76ab4da5dccf505f2f2cc4fce2
Commit:        597b3576c7399d76ab4da5dccf505f2f2cc4fce2
Parent:        223c594f0e9e0248739a3bbb1c98fbf509140e6b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu May 25 15:06:57 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon May 29 14:41:53 2017 +0200

tests: wait for raid in sync

Lvchange needs synchronized raid.

---
 test/shell/lvchange-raid.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
test/shell/lvchange-raid.sh +1 -0
index 34a40dc..7418cd5 100644
@@ -42,6 +42,7 @@ run_writemostly_check() {
 
 	printf "#\n#\n#\n# %s/%s (%s): run_writemostly_check\n#\n#\n#\n" \
 		$vg $lv $segtype
+	aux wait_for_sync $vg $lv
 
 	# No writemostly flag should be there yet.
 	check lv_attr_bit health $vg/${lv}_rimage_0 "-"