if [ "$FAILURE_MODE" = "HARD" ]; then
skip_env "$TESTSUITE: is not functional with FAILURE_MODE = HARD, " \
"please use recovery-double-scale, bz20407"
- exit 0
fi
[ "$SLOW" = "no" ] && EXCEPT_SLOW=""
############### First Failure Mode ###############
test_1() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
clients_up
############### Fifth Failure Mode ###############
test_5() {
- [ $OSTCOUNT -lt 2 ] && skip_env "needs >= 2 OSTs" && return 0
+ [ $OSTCOUNT -lt 2 ] && skip_env "needs >= 2 OSTs"
echo "Fifth Failure Mode: OST/OST `date`"
############### Tenth Failure Mode ###############
test_10() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
shutdown_facet mds1
reboot_facet mds1
############### Seventh Failure Mode ###############
test_11() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
echo "Verify Lustre filesystem is up and running"
[ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
###################################################
test_12() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
echo "Verify Lustre filesystem is up and running"
[ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
###################################################
test_13() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
echo "Verify Lustre filesystem is up and running"
[ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
###################################################
test_14() {
- [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
+ [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs"
echo "Verify Lustre filesystem is up and running"
[ -z "$(mounted_lustre_filesystems)" ] && error "Lustre is not running"
# 'lctl dl' output must be blank.
# Skipping test for CLIENTONLY mode because of
# cleanupall()->stopall() does not cleanup the servers on this mode.
- [ "$CLIENTONLY" ] && skip "CLIENTONLY mode" && return
+ [ "$CLIENTONLY" ] && skip "CLIENTONLY mode"
- remote_servers || { skip "Local servers" && return 0; }
+ remote_servers || skip "Local servers"
cleanupall
}
test_1 () {
- local mdss=$(get_facets MDS)
+ local mdss=$(get_facets MDS)
- check_progs_installed $(facets_hosts $mdss) $SGPDDSURVEY sg_map || \
- { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
+ check_progs_installed $(facets_hosts $mdss) $SGPDDSURVEY sg_map ||
+ skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found"
- run_sgpdd_facets $mdss
+ run_sgpdd_facets $mdss
}
run_test 1 "sgpdd-survey, mds, scsidevs"
test_2 () {
- local osts=$(get_facets OST)
+ local osts=$(get_facets OST)
- check_progs_installed $(facets_hosts $osts) $SGPDDSURVEY sg_map || \
- { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
+ check_progs_installed $(facets_hosts $osts) $SGPDDSURVEY sg_map ||
+ skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found"
- run_sgpdd_facets $osts
+ run_sgpdd_facets $osts
}
run_test 2 "sgpdd-survey, osts, scsidevs"