Commit 56efc51a authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrey Vagin

test/zdtm.sh cleanup: mark local variables as such

Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrey Vagin <avagin@gmail.com>
parent dae80231
...@@ -44,15 +44,15 @@ CRTOOLS=`pwd`/`dirname $0`/../crtools ...@@ -44,15 +44,15 @@ CRTOOLS=`pwd`/`dirname $0`/../crtools
run_test() run_test()
{ {
test=$ZP/$1 local test=$ZP/$1
tname=`basename $test` local tname=`basename $test`
tdir=`dirname $test` local tdir=`dirname $test`
killall -9 $tname killall -9 $tname
make -C $tdir cleanout $tname.pid make -C $tdir cleanout $tname.pid
pid=`cat $test.pid` || return 1 local pid=`cat $test.pid` || return 1
ddump="dump/$tname/$pid" local ddump="dump/$tname/$pid"
DUMP_PATH=`pwd`"/"$ddump DUMP_PATH=`pwd`"/"$ddump
echo Dump $pid echo Dump $pid
...@@ -80,8 +80,8 @@ run_test() ...@@ -80,8 +80,8 @@ run_test()
case_error() case_error()
{ {
test=$ZP/$1 local test=$ZP/$1
test_log="`pwd`/$test.out" local test_log="`pwd`/$test.out"
echo "Test: $test" echo "Test: $test"
echo "====================== ERROR ======================" echo "====================== ERROR ======================"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment