Whamcloud - gitweb
b=15221
authorgrev <grev>
Mon, 7 Apr 2008 15:02:40 +0000 (15:02 +0000)
committergrev <grev>
Mon, 7 Apr 2008 15:02:40 +0000 (15:02 +0000)
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)

lustre/tests/cfg/insanity-local.sh
lustre/tests/cfg/local.sh
lustre/tests/recovery-small.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh

index 5249250..25b7bcd 100644 (file)
@@ -76,4 +76,5 @@ POWER_UP=${POWER_UP:-"powerman --on"}
 
 PDSH=${PDSH:-no_dsh}
 SLOW=${SLOW:-no}
 
 PDSH=${PDSH:-no_dsh}
 SLOW=${SLOW:-no}
+FAIL_ON_ERROR=${FAIL_ON_ERROR:-true}
 
 
index 9fccbbf..740615a 100644 (file)
@@ -98,3 +98,4 @@ FAILURE_MODE=${FAILURE_MODE:-SOFT} # or HARD
 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}
index dc797be..3b38c13 100755 (executable)
@@ -12,8 +12,8 @@ init_test_env $@
 . ${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"
 
 build_test_filter
 
 
 build_test_filter
 
@@ -587,10 +587,10 @@ test_24() {       # bug 2248 - eviction fails writeback but app doesn't see it
 }
 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`
@@ -609,7 +609,7 @@ test_26() {      # bug 5921 - evict dead exports by pinger
         [ $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
index f4ee076..367995e 100644 (file)
@@ -2990,7 +2990,7 @@ test_69() {
 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
index 9b57846..075dfd9 100644 (file)
@@ -1265,7 +1265,7 @@ error_noexit() {
 
 error() {
     error_noexit "$@"
 
 error() {
     error_noexit "$@"
-    [ "$FAIL_ON_ERROR" ] && exit 1 || true
+    $FAIL_ON_ERROR && exit 1 || true
 }
 
 error_exit() {
 }
 
 error_exit() {
@@ -1509,7 +1509,7 @@ osc_to_ost()
 
 remote_mds ()
 {
 
 remote_mds ()
 {
-    [ ! -z "$(lctl dl | grep \<mdt\>)" ]
+    [ -z "$(lctl dl | grep mdt)" ]
 }
 
 remote_mds_nodsh()
 }
 
 remote_mds_nodsh()
@@ -1519,7 +1519,7 @@ remote_mds_nodsh()
 
 remote_ost ()
 {
 
 remote_ost ()
 {
-    [ -z "$(lctl dl | grep \<ost\>)" ]
+    [ -z "$(lctl dl | grep ost)" ]
 }
 
 remote_ost_nodsh()
 }
 
 remote_ost_nodsh()