From: Johann Lombardi Date: Fri, 5 Oct 2012 13:26:39 +0000 (+0200) Subject: LU-1842 test: re-enable all sanity-quota tests X-Git-Tag: 2.3.53~17 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=99ba95a2dc6c07a4bd3aa4148f40ae36cbcb2c99;hp=b2cb6fd1095f9c483b7bc1ebbbfdaef719aea87c LU-1842 test: re-enable all sanity-quota tests This patch enables all sanity-quota tests that were disabled in order to land the new quota architecture (based on qsd/qmt). All those tests should now pass. This patch also reduces the time it takes to run test 6 (it used to sleep for at_max = 600s). Signed-off-by: Johann Lombardi Change-Id: Idac4812663a3c90a213cc59d03b5f28f561ac39d Reviewed-on: http://review.whamcloud.com/4200 Tested-by: Hudson Reviewed-by: Jinshan Xiong Reviewed-by: Alex Zhuravlev Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index b08e250..e6ed9f9 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -10,8 +10,7 @@ SRCDIR=`dirname $0` export PATH=$PWD/$SRCDIR:$SRCDIR:$PWD/$SRCDIR/../utils:$PATH:/sbin ONLY=${ONLY:-"$*"} -# only accounting tests and test 22 are supported for the time being -ALWAYS_EXCEPT="0 1 2 3 4 5 6 7 8 9 10 11 12 13 15 17 18 19 20 21 23 24 27 30 $SANITY_QUOTA_EXCEPT" +ALWAYS_EXCEPT="$SANITY_QUOTA_EXCEPT" # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! [ "$ALWAYS_EXCEPT$EXCEPT" ] && @@ -841,17 +840,6 @@ test_6() { sync; sync sync_all_data || true - # set a small timeout value, to make the quota RPC timedout before - # the watchdog triggered. - local timeout - if at_is_enabled; then - timeout=$(at_max_get ost) - at_max_set 20 ost - else - timeout=$(do_facet ost1 $LCTL get_param -n timeout) - do_facet ost1 $LCTL set_param timeout=20 - fi - #define QUOTA_DQACQ 601 #define OBD_FAIL_PTLRPC_DROP_REQ_OPC 0x513 lustre_fail mds 0x513 601 @@ -865,8 +853,8 @@ test_6() { $RUNAS $DD of=$TESTFILE count=2 seek=1 oflag=sync conv=notrunc & DDPID=$! - echo "Sleep for $timeout" - sleep $timeout + echo "Sleep for $TIMEOUT" + sleep $TIMEOUT # write should be blocked and never finished if ! ps -p $DDPID > /dev/null 2>&1; then @@ -874,12 +862,6 @@ test_6() { error "write finished incorrectly!" fi - if at_is_enabled; then - at_max_set $timeout ost - else - do_facet ost1 $LCTL set_param timeout=$timeout - fi - lustre_fail mds 0 0 # no watchdog is triggered