From ef803602bf2ee9ed6aabb09aafe23fe036e7b8b2 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Thu, 7 Jul 2011 14:32:45 +0800 Subject: [PATCH] LU-492 fix sanity-quota test_29 * Send a RPC to MDS to confine at_current time of MDS service time * Sleep enough seconds Change-Id: I09ed7aa5a2103ef3a3a03c72d5c09e6769bf9248 Signed-off-by: Bobi Jam Reviewed-on: http://review.whamcloud.com/1069 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity-quota.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index f749443..240bb93 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2012,14 +2012,16 @@ test_29() timeout=$(lctl get_param -n timeout) lctl set_param timeout=10 fi + # actually send a RPC to make service at_current confined within at_max + $LFS setquota -u $TSTUSR -b 0 -B $BLK_LIMIT -i 0 -I 0 $DIR || error "should succeed" #define OBD_FAIL_MDS_QUOTACTL_NET 0x12e lustre_fail mds 0x12e $LFS setquota -u $TSTUSR -b 0 -B $BLK_LIMIT -i 0 -I 0 $DIR & pid=$! - echo "sleeping for $((10 * 2)) seconds" - sleep $((10 * 2)) + echo "sleeping for 10 * 1.25 + 5 + 10 seconds" + sleep 28 ps -p $pid && error "lfs hadn't finished by timeout" wait $pid && error "succeeded, but should have failed" -- 1.8.3.1