Skip to contentSkip to conversation

master - tests: fix raid rebuild tests to work with older target versions

PATCH Heinz Mauelshagen 1 participant 1 message Sep 22, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=cb4892dd6067da84833d261ffc19fba4f7086fb0
Commit:        cb4892dd6067da84833d261ffc19fba4f7086fb0
Parent:        38a6a39daa2967970da0017ac96e40af1c7fbc7b
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Thu Sep 22 23:18:14 2016 +0200
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Thu Sep 22 23:18:14 2016 +0200

tests: fix raid rebuild tests to work with older target versions

Pre 1.9 dm-raid targets status output was racy, which caused the device status chars to be unreliable _during_ synchronization. This shows paritcularly with tiny test devices used.

Enhance lvchange-rebuild-raid.sh to not check status chars _during_ synchronization. Just check afterwards.

---
 WHATS_NEW                           |    1 +
 test/shell/lvchange-rebuild-raid.sh |   42 ++++++++++++++++++++++++----------
 2 files changed, 30 insertions(+), 13 deletions(-)
WHATS_NEW +1 -0
index aedacee..6a178e6 100644
@@ -1,5 +1,6 @@
 Version 2.02.166 - 
 =====================================
+  Fix lvchange-rebuild-raid.sh to cope with older target versions.
   Use dm_config_parse_without_dup_node_check() to speedup metadata reading.
   Fix lvconvert --repair regression
   Fix reported origin lv field for cache volumes. (2.02.133)
test/shell/lvchange-rebuild-raid.sh +29 -13

128 lines not on this page · raw message