Whamcloud - gitweb
b=13979
authorgrev <grev>
Tue, 29 Jan 2008 10:02:49 +0000 (10:02 +0000)
committergrev <grev>
Tue, 29 Jan 2008 10:02:49 +0000 (10:02 +0000)
i=Adilger
change tdir to start from d0 to be cleaned up automatically

lustre/tests/recovery-small.sh
lustre/tests/replay-dual.sh
lustre/tests/replay-ost-single.sh
lustre/tests/replay-single.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh

index da39d2a..6f56f15 100755 (executable)
@@ -23,7 +23,6 @@ SETUP=${SETUP:-""}
 CLEANUP=${CLEANUP:-""}
 
 cleanup_and_setup_lustre
-rm -rf $DIR/${TESTSUITE}/[df][0-9]* # bug 13798 new t-f tdir staff
 rm -rf $DIR/[df][0-9]*
 
 test_1() {
index 9bc0375..65ff49c 100755 (executable)
@@ -24,7 +24,6 @@ init_test_env $@
 build_test_filter
 
 cleanup_and_setup_lustre
-rm -rf $DIR/${TESTSUITE}/[df][0-9]* # bug 13798 new t-f tdir staff
 rm -rf $DIR/[df][0-9]*
 
 [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
index f481ba8..8f5765e 100755 (executable)
@@ -30,7 +30,6 @@ OSTCOUNT=1
 build_test_filter
 
 REFORMAT=--reformat cleanup_and_setup_lustre
-rm -rf $DIR/${TESTSUITE}/[df][0-9]* # bug 13798 new t-f tdir staff
 rm -rf $DIR/[df][0-9]*
 
 test_0a() {
index 078efaa..d50502c 100755 (executable)
@@ -29,7 +29,6 @@ cleanup_and_setup_lustre
 
 mkdir -p $DIR
 
-rm -rf $DIR/${TESTSUITE}/[df][0-9]* # bug 13798 new t-f tdir staff
 rm -rf $DIR/[df][0-9]*
 
 test_0() {
index c75927d..630426b 100644 (file)
@@ -118,7 +118,7 @@ MAXFREE=${MAXFREE:-$((200000 * $OSTCOUNT))}
 
 [ -f $DIR/d52a/foo ] && chattr -a $DIR/d52a/foo
 [ -f $DIR/d52b/foo ] && chattr -i $DIR/d52b/foo
-rm -rf $DIR/[Rdfs][1-9]*
+rm -rf $DIR/[Rdfs][0-9]*
 
 if [ $UID -ne 0 ]; then
        log "running as non-root uid $UID"
index f251a21..05dc7eb 100644 (file)
@@ -797,7 +797,7 @@ cleanup_and_setup_lustre() {
 
 check_and_cleanup_lustre() {
     if [ "`mount | grep $MOUNT`" ]; then
-        rm -f $DIR/${TESTSUITE}/[Rdfs][0-9]*
+        [ -n "$DIR" ] && rm -rf $DIR/[Rdfs][0-9]*
     fi
     if [ "$I_MOUNTED" = "yes" ]; then
         cleanupall -f || error "cleanup failed"
@@ -1122,7 +1122,7 @@ run_one() {
     testnum=$1
     message=$2
     tfile=f${testnum}
-    export tdir=d${TESTSUITE}/d${base}
+    export tdir=d0.${TESTSUITE}/d${base}
     local SAVE_UMASK=`umask`
     umask 0022
     mkdir -p $DIR/$tdir