From e7da8e7e1f27c2ee193a2dfc20819076c2bd19bf Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 14 Nov 2016 12:55:43 +0100 Subject: [PATCH] tests: fix checking for pvmove LV Use consitently egrep. TODO: make probably aux func --- test/shell/pvmove-resume-2.sh | 2 +- test/shell/pvmove-resume-multiseg.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/shell/pvmove-resume-2.sh b/test/shell/pvmove-resume-2.sh index 3baa6df17..29fd2a8bc 100644 --- a/test/shell/pvmove-resume-2.sh +++ b/test/shell/pvmove-resume-2.sh @@ -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 diff --git a/test/shell/pvmove-resume-multiseg.sh b/test/shell/pvmove-resume-multiseg.sh index c22770f17..a2fbf3552 100644 --- a/test/shell/pvmove-resume-multiseg.sh +++ b/test/shell/pvmove-resume-multiseg.sh @@ -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