mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 21:38:16 +00:00
test/zdtm.sh cleanup: mark local variables as such
Signed-off-by: Kir Kolyshkin <kir@openvz.org> Signed-off-by: Andrey Vagin <avagin@gmail.com>
This commit is contained in:
parent
dae80231b0
commit
56efc51a5b
14
test/zdtm.sh
14
test/zdtm.sh
@ -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()
|
|||||||
|
|
||||||
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 ======================"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user