mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: remove incorrect check
We would need to be check same status value - otherwise we can hit race in validating 2 different states.
This commit is contained in:
parent
09621725d0
commit
f1858d209d
@ -38,12 +38,9 @@ _sync() {
|
|||||||
_check_raid_in_loop() {
|
_check_raid_in_loop() {
|
||||||
local vg=$1
|
local vg=$1
|
||||||
local lv=$2
|
local lv=$2
|
||||||
local A=$3
|
local health=$3
|
||||||
local B=$(echo $A | tr A a)
|
|
||||||
for i in {1..10} ; do
|
for i in {1..10} ; do
|
||||||
check raid_leg_status $vg $lv ${A} && return 0
|
check raid_leg_status $vg $lv ${health} && return 0
|
||||||
# Only when there is initial 'a..a' we will wait for a while
|
|
||||||
check raid_leg_status $vg $lv ${B} || break
|
|
||||||
sleep .05
|
sleep .05
|
||||||
done
|
done
|
||||||
die "Cannot get $A status for $vg/$lv";
|
die "Cannot get $A status for $vg/$lv";
|
||||||
|
Loading…
Reference in New Issue
Block a user