mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
testsuite: Forgot to pull 'should's after fixing RAID4/5/6 mismatch test
Test will now fail rather than warn if conditions are not met.
This commit is contained in:
parent
9e8dec2f38
commit
4129cf5090
@ -184,15 +184,8 @@ run_syncaction_check() {
|
|||||||
# 'lvs' should show results
|
# 'lvs' should show results
|
||||||
lvchange --syncaction check $vg/$lv
|
lvchange --syncaction check $vg/$lv
|
||||||
aux wait_for_sync $vg $lv
|
aux wait_for_sync $vg $lv
|
||||||
# FIXME: this needs kernel fix in md-raid
|
check lv_attr_bit health $vg/$lv "m"
|
||||||
# currently let just this test to cause 'warning'
|
not check lv_field $vg/$lv raid_mismatch_count "0"
|
||||||
if ! get lv_field $vg/$lv lv_attr -a | grep '.*m.$'; then
|
|
||||||
dmsetup status | grep $vg
|
|
||||||
# false
|
|
||||||
fi
|
|
||||||
# FIXME: with fixed kernel this should not fail
|
|
||||||
# add 'wrapper' detecting kernel for this
|
|
||||||
should not check lv_field $vg/$lv raid_mismatch_count "0"
|
|
||||||
|
|
||||||
# "repair" will fix discrepancies
|
# "repair" will fix discrepancies
|
||||||
lvchange --syncaction repair $vg/$lv
|
lvchange --syncaction repair $vg/$lv
|
||||||
@ -202,7 +195,7 @@ run_syncaction_check() {
|
|||||||
# 'lvs' should show results
|
# 'lvs' should show results
|
||||||
lvchange --syncaction check $vg/$lv
|
lvchange --syncaction check $vg/$lv
|
||||||
aux wait_for_sync $vg $lv
|
aux wait_for_sync $vg $lv
|
||||||
check lv_attr_bit health $vg/$lv "-" || check lv_attr_bit health $vg/$lv "m"
|
check lv_attr_bit health $vg/$lv "-"
|
||||||
check lv_field $vg/$lv raid_mismatch_count "0"
|
check lv_field $vg/$lv raid_mismatch_count "0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user