Whamcloud - gitweb
b=13496
authorgrev <grev>
Fri, 7 Sep 2007 17:57:17 +0000 (17:57 +0000)
committergrev <grev>
Fri, 7 Sep 2007 17:57:17 +0000 (17:57 +0000)
i=Adilger
i=Wangdi

replay-ost-single CLEANUP fix.

lustre/tests/replay-ost-single.sh

index 9fe3f77..fa8571e 100755 (executable)
@@ -4,6 +4,7 @@ set -e
 
 PTLDEBUG=${PTLDEBUG:--1}
 LUSTRE=${LUSTRE:-`dirname $0`/..}
+CLEANUP=${CLEANUP:-""}
 . $LUSTRE/tests/test-framework.sh
 init_test_env $@
 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
@@ -38,7 +39,6 @@ fi
 build_test_filter
 
 SETUP=${SETUP:-"setup"}
-CLEANUP=${CLEANUP:-"cleanup"}
 
 test_0a() {
     # needs to run during initial client->OST connection
@@ -202,5 +202,5 @@ test_7() {
 run_test 7 "Fail OST before obd_destroy"
 
 equals_msg `basename $0`: test complete, cleaning up
-$CLEANUP
+check_and_cleanup_lustre
 [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true