Whamcloud - gitweb
b=19115
[fs/lustre-release.git] / lustre / tests / llog-test.sh
index 98b8d12..1de2b4f 100644 (file)
@@ -7,7 +7,7 @@ LUSTRE=${LUSTRE:-`dirname $0`/..}
 
 init_test_env $@
 
-. ${CONFIG:=$LUSTRE/tests/cfg/local.sh}
+. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 
 ostfailover_HOST=${ostfailover_HOST:-$ost_HOST}
 
@@ -33,6 +33,7 @@ cleanup() {
     zconf_umount `hostname` $MOUNT
     stop mds ${FORCE} $MDSLCONFARGS
     stop ost ${FORCE} --dump $TMP/replay-ost-single-`hostname`.log
+    cleanup_check
 }
 
 if [ "$ONLY" == "cleanup" ]; then
@@ -58,7 +59,7 @@ setup() {
        log "== test 00: target handle mismatch (bug 5317) === `date +%H:%M:%S`"
 
        #define OBD_FAIL_OST_ALL_REPLY_NET       0x211
-       do_facet ost "sysctl -w lustre.fail_loc=0x80000211"
+       do_facet ost "lctl set_param fail_loc=0x80000211"
 
        zconf_mount `hostname` $MOUNT && df $MOUNT && pass || error "mount fail"
     fi
@@ -102,3 +103,4 @@ run_test 3 "Remove testset"
 
 equals_msg test complete, cleaning up
 FORCE=--force $CLEANUP
+echo "$0: completed"