ONLY=${ONLY:-"$*"}
# enable test_23 after bug 16542 fixed.
-ALWAYS_EXCEPT="10 23 $SANITY_QUOTA_EXCEPT"
+ALWAYS_EXCEPT="10 $SANITY_QUOTA_EXCEPT"
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
case `uname -r` in
echo " step2: testing ......"
count=0
- timeout=$(lctl get_param -n timeout)
+ if at_is_valid && at_is_enabled; then
+ timeout=$(at_max_get mds)
+ else
+ timeout=$(lctl get_param -n timeout)
+ fi
while [ true ]; do
if ! ps -p ${DDPID} > /dev/null 2>&1; then break; fi
count=$[count+1]
echo " step2: testing ......"
count=0
- timeout=$(lctl get_param -n timeout)
+ if at_is_valid && at_is_enabled; then
+ timeout=$(at_max_get mds)
+ else
+ timeout=$(lctl get_param -n timeout)
+ fi
while [ true ]; do
if ! ps -p ${DDPID} > /dev/null 2>&1; then break; fi
count=$[count+1]
fi
count=0
+ if at_is_valid && at_is_enabled; then
+ timeout=$(at_max_get mds)
+ else
+ timeout=$(lctl get_param -n timeout)
+ fi
while [ true ]; do
if ! ps -p ${DDPID} > /dev/null 2>&1; then break; fi
if [ $((++count % (2 * timeout) )) -eq 0 ]; then
print;
}
}' $TMP/lustre-log-${TESTNAME}.log`
- if [ -n "$watchdog" ]; then error "$watchdog"; fi
+ [ `echo "$watchdog" | wc -l` -ge 3 ] && error "$watchdog"
rm -f $TMP/lustre-log-${TESTNAME}.log
}
run_test_with_stat 18b "run for fixing bug14840(mds failover, no watchdog) ==========="