mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: fix checking for pvmove LV
Use consitently egrep. TODO: make probably aux func
This commit is contained in:
parent
a7691cdebb
commit
e7da8e7e1f
@ -76,7 +76,7 @@ test_pvmove_resume() {
|
||||
aux enable_dev "$dev2"
|
||||
|
||||
i=0
|
||||
while get lv_field $vg name -a | grep "^pvmove"; do
|
||||
while get lv_field $vg name -a | egrep "^\[?pvmove"; do
|
||||
# wait for 30 secs at max
|
||||
test $i -ge 300 && die "Pvmove is too slow or does not progress."
|
||||
sleep .1
|
||||
|
@ -89,7 +89,7 @@ test_pvmove_resume() {
|
||||
aux enable_dev "$dev5"
|
||||
|
||||
i=0
|
||||
while get lv_field $vg name -a | grep "^\[?pvmove"; do
|
||||
while get lv_field $vg name -a | egrep "^\[?pvmove"; do
|
||||
# wait for 30 secs at max
|
||||
test $i -ge 300 && die "Pvmove is too slow or does not progress."
|
||||
sleep .1
|
||||
|
Loading…
Reference in New Issue
Block a user