From b9a47c4165015562d273bdc0f28e65423546465c Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 11 Jun 2008 21:24:16 +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 afd4e48e81..10b570f473 100644
--- a/lustre/tests/sanityN.sh
+++ b/lustre/tests/sanityN.sh
@@ -174,10 +174,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" ] || \
@@ -187,11 +188,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
-- 
GitLab