From 772093d90f9e011c6a37c94b6d7149692c2fa388 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 11 Jun 2008 17:43:30 +0000 Subject: [PATCH] b=14384 i=Adilger test_9, test_10a fixes: do not break DIR value --- lustre/tests/sanityN.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 5bfda12..b32c148 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -178,10 +178,11 @@ run_test 8 "remove of open special file on other node ==========" test_9() { MTPT=1 + local dir > $DIR2/f9 for C in a b c d e f g h i j k l; do - DIR=`eval echo \\$DIR$MTPT` - echo -n $C >> $DIR/f9 + dir=`eval echo \\$DIR$MTPT` + echo -n $C >> $dir/f9 [ "$MTPT" -eq 1 ] && MTPT=2 || MTPT=1 done [ "`cat $DIR1/f9`" = "abcdefghijkl" ] || \ @@ -191,11 +192,12 @@ run_test 9 "append of file with sub-page size on multiple mounts" test_10a() { MTPT=1 + local dir OFFSET=0 > $DIR2/f10 for C in a b c d e f g h i j k l; do - DIR=`eval echo \\$DIR$MTPT` - echo -n $C | dd of=$DIR/f10 bs=1 seek=$OFFSET count=1 + dir=`eval echo \\$DIR$MTPT` + echo -n $C | dd of=$dir/f10 bs=1 seek=$OFFSET count=1 [ "$MTPT" -eq 1 ] && MTPT=2 || MTPT=1 OFFSET=`expr $OFFSET + 1` done -- 1.8.3.1