Commit 6fd82bf7 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm.sh: check that a pid is valid

A test process should be alive.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ef1c6035
......@@ -92,6 +92,12 @@ run_test()
local pid ddump
pid=`cat $test.pid` || return 1
kill -s 0 "$pid" || {
echo "Get a wrong pid '$pid'"
return 1
}
ddump=dump/$tname/$pid
DUMP_PATH=`pwd`/$ddump
......
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