From: yangsheng Date: Mon, 6 Aug 2012 19:12:56 +0000 (+0800) Subject: LU-1696 test: Test failure on test suite sanity test_49 X-Git-Tag: 2.2.93~28 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=588d59713667220ce86c2a84ce1c3db434174ff7;p=fs%2Flustre-release.git LU-1696 test: Test failure on test suite sanity test_49 Use 'grep -w' for pid search to avoid a partial match. Signed-off-by: yang sheng Change-Id: I809a9c3553b3a9d736891c7399d2786eb43c4d3b Reviewed-on: http://review.whamcloud.com/3544 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Yu Jian Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 071343d..81c1125 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -3046,7 +3046,7 @@ test_49() { # LU-1030 local osc1_mppc=osc.$(get_osc_import_name client ost1).max_pages_per_rpc local orig_mppc=`$LCTL get_param -n $osc1_mppc` # loop until dd process exits - while ps ax -opid | grep -q $dd_pid; do + while ps ax -opid | grep -wq $dd_pid; do $LCTL set_param $osc1_mppc=$((RANDOM % 256 + 1)) sleep $((RANDOM % 5 + 1)) done