Whamcloud - gitweb
b=12900
authorgrev <grev>
Tue, 18 Sep 2007 16:00:48 +0000 (16:00 +0000)
committergrev <grev>
Tue, 18 Sep 2007 16:00:48 +0000 (16:00 +0000)
i=Adilger

export DIR2 tdir

lustre/tests/test-framework.sh

index 6d30100..2223235 100644 (file)
@@ -54,6 +54,7 @@ init_test_env() {
     export FSYTPE=${FSTYPE:-"ldiskfs"}
     export NAME=${NAME:-local}
     export LPROC=/proc/fs/lustre
+    export DIR2
 
     if [ "$ACCEPTOR_PORT" ]; then
         export PORT_OPT="--port $ACCEPTOR_PORT"
@@ -983,7 +984,7 @@ run_one() {
     testnum=$1
     message=$2
     tfile=f${testnum}
-    tdir=d${base}
+    export tdir=d${base}
 
     BEFORE=`date +%s`
     log "== test $testnum: $message ============ `date +%H:%M:%S` ($BEFORE)"
@@ -996,6 +997,7 @@ run_one() {
         error "LBUG/LASSERT detected"
     pass "($((`date +%s` - $BEFORE))s)"
     unset TESTNAME
+    unset tdir
     cd $SAVE_PWD
     $CLEANUP
 }