From: Nathaniel Clark Date: Wed, 21 Nov 2012 20:09:54 +0000 (-0500) Subject: LU-2194 tests: Wait for reconnect in recovery-small/19 X-Git-Tag: 2.3.58~48 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=cc980df563ef86847aae1e0a3f0a5b17589e6297;ds=inline LU-2194 tests: Wait for reconnect in recovery-small/19 Fully wait for clients to reconnect before checking if evicted. Signed-off-by: Nathaniel Clark Change-Id: I332d9b43344eb2c7c883fc28adfbbfb4eeb8a0d0 Reviewed-on: http://review.whamcloud.com/4652 Tested-by: Hudson Reviewed-by: Vitaly Fertman Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Jinshan Xiong Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index 804e055..d1e51f8 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -418,7 +418,7 @@ test_19a() { do_facet client "munlink $DIR/$tfile" # let the client reconnect - sleep 5 + client_reconnect EVICT=$(do_facet client $LCTL get_param mdc.$FSNAME-MDT*.state | \ awk -F"[ [,]" '/EVICTED]$/ { if (mx<$4) {mx=$4;} } END { print mx }') @@ -438,7 +438,7 @@ test_19b() { do_facet client munlink $DIR/$tfile # let the client reconnect - sleep 5 + client_reconnect EVICT=$(do_facet client $LCTL get_param osc.$FSNAME-OST*.state | \ awk -F"[ [,]" '/EVICTED]$/ { if (mx<$4) {mx=$4;} } END { print mx }')