From b113af75053c721c2540b1e4cac28599ddf84e22 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Sat, 20 Aug 2011 19:01:15 +0800 Subject: [PATCH] LU-594 Make sure sanity 27v fallout clears We need wait long enough for OST to wake up from OBD_FAIL_TGT_DELAY_PRECREATE sleep. Change-Id: Ie8b56e3f8bad79049946563353360dce58280ba4 Signed-off-by: Bobi Jam Reviewed-on: http://review.whamcloud.com/1263 Reviewed-by: Yu Jian Tested-by: Hudson Reviewed-by: Johann Lombardi --- lustre/tests/sanity.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index d977ed3..8ee39c2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1142,9 +1142,9 @@ test_27u() { # bug 4900 run_test 27u "skip object creation on OSC w/o objects ==========" test_27v() { # bug 4900 - [ "$OSTCOUNT" -lt "2" ] && skip_env "too few OSTs" && return - remote_mds_nodsh && skip "remote MDS with nodsh" && return - remote_ost_nodsh && skip "remote OST with nodsh" && return + [ "$OSTCOUNT" -lt "2" ] && skip_env "too few OSTs" && return + remote_mds_nodsh && skip "remote MDS with nodsh" && return + remote_ost_nodsh && skip "remote OST with nodsh" && return exhaust_all_precreations 0x215 reset_enospc @@ -1163,9 +1163,10 @@ test_27v() { # bug 4900 local FINISH=`date +%s` local TIMEOUT=`lctl get_param -n timeout` - [ $((FINISH - START)) -ge $((TIMEOUT / 2)) ] && \ + local PROCESS=$((FINISH - START)) + [ $PROCESS -ge $((TIMEOUT / 2)) ] && \ error "$FINISH - $START >= $TIMEOUT / 2" - + sleep $((TIMEOUT / 2 - PROCESS)) reset_enospc } run_test 27v "skip object creation on slow OST =================" -- 1.8.3.1