From 56efc51a5bc5074b462f348526f3615d796fca6e Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 6 Feb 2012 20:57:24 +0400 Subject: [PATCH] test/zdtm.sh cleanup: mark local variables as such Signed-off-by: Kir Kolyshkin Signed-off-by: Andrey Vagin --- test/zdtm.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index 4d38e893a..9abdd94e9 100644 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -44,15 +44,15 @@ CRTOOLS=`pwd`/`dirname $0`/../crtools run_test() { - test=$ZP/$1 - tname=`basename $test` - tdir=`dirname $test` + local test=$ZP/$1 + local tname=`basename $test` + local tdir=`dirname $test` killall -9 $tname make -C $tdir cleanout $tname.pid - pid=`cat $test.pid` || return 1 - ddump="dump/$tname/$pid" + local pid=`cat $test.pid` || return 1 + local ddump="dump/$tname/$pid" DUMP_PATH=`pwd`"/"$ddump echo Dump $pid @@ -80,8 +80,8 @@ run_test() case_error() { - test=$ZP/$1 - test_log="`pwd`/$test.out" + local test=$ZP/$1 + local test_log="`pwd`/$test.out" echo "Test: $test" echo "====================== ERROR ======================"