i=Adilger
sanity test_71, recovery-small test_26 fixes
renumbering test_26->test_26a
FAIL_ON_ERROR initialization in cfg
error, remote_mds, remote_ost fn fixes (b=14763, comment 19)
PDSH=${PDSH:-no_dsh}
SLOW=${SLOW:-no}
PDSH=${PDSH:-no_dsh}
SLOW=${SLOW:-no}
+FAIL_ON_ERROR=${FAIL_ON_ERROR:-true}
POWER_DOWN=${POWER_DOWN:-"powerman --off"}
POWER_UP=${POWER_UP:-"powerman --on"}
SLOW=${SLOW:-no}
POWER_DOWN=${POWER_DOWN:-"powerman --off"}
POWER_UP=${POWER_UP:-"powerman --on"}
SLOW=${SLOW:-no}
+FAIL_ON_ERROR=${FAIL_ON_ERROR:-true}
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
# also long tests: 19, 21a, 21e, 21f, 23, 27
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
# also long tests: 19, 21a, 21e, 21f, 23, 27
-# 1 2.5 4 4 (min)"
-[ "$SLOW" = "no" ] && EXCEPT_SLOW="17 26b 50 51 57"
+# 1 2.5 2.5 4 4 (min)"
+[ "$SLOW" = "no" ] && EXCEPT_SLOW="17 26a 26b 50 51 57"
}
run_test 24 "fsync error (should return error)"
}
run_test 24 "fsync error (should return error)"
-test_26() { # bug 5921 - evict dead exports by pinger
+test_26a() { # was test_26 bug 5921 - evict dead exports by pinger
# this test can only run from a client on a separate node.
# this test can only run from a client on a separate node.
- remote_ost || skip "local OST" && return
- remote_mds || skip "local MDS" && return
+ remote_ost || { skip "local OST" && return 0; }
+ remote_mds || { skip "local MDS" && return 0; }
OST_FILE=obdfilter.${ost1_svc}.num_exports
OST_EXP="`do_facet ost1 lctl get_param -n $OST_FILE`"
OST_NEXP1=`echo $OST_EXP | cut -d' ' -f2`
OST_FILE=obdfilter.${ost1_svc}.num_exports
OST_EXP="`do_facet ost1 lctl get_param -n $OST_FILE`"
OST_NEXP1=`echo $OST_EXP | cut -d' ' -f2`
[ $OST_NEXP1 -le $OST_NEXP2 ] && error "client not evicted"
return 0
}
[ $OST_NEXP1 -le $OST_NEXP2 ] && error "client not evicted"
return 0
}
-run_test 26 "evict dead exports"
+run_test 26a "evict dead exports"
test_26b() { # bug 10140 - evict dead exports by pinger
client_df
test_26b() { # bug 10140 - evict dead exports by pinger
client_df
run_test 69 "verify oa2dentry return -ENOENT doesn't LBUG ======"
test_71() {
run_test 69 "verify oa2dentry return -ENOENT doesn't LBUG ======"
test_71() {
- which dbench > /dev/null 2>&1 || skip "dbench not installed, skip this test" && return 0
+ which dbench > /dev/null 2>&1 || { skip "dbench not installed, skip this test" && return 0; }
DBENCH_LIB=${DBENCH_LIB:-/usr/lib/dbench}
PATH=${DBENCH_LIB}:${PATH}
cp `which dbench` $DIR
DBENCH_LIB=${DBENCH_LIB:-/usr/lib/dbench}
PATH=${DBENCH_LIB}:${PATH}
cp `which dbench` $DIR
error() {
error_noexit "$@"
error() {
error_noexit "$@"
- [ "$FAIL_ON_ERROR" ] && exit 1 || true
+ $FAIL_ON_ERROR && exit 1 || true
- [ ! -z "$(lctl dl | grep \<mdt\>)" ]
+ [ -z "$(lctl dl | grep mdt)" ]
- [ -z "$(lctl dl | grep \<ost\>)" ]
+ [ -z "$(lctl dl | grep ost)" ]