Commit 55a7c7a7 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

test: check descriptors and maps for static tests

tname doesn't contain a test type.
Reported-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3f23bde5
......@@ -709,7 +709,7 @@ EOF
[ -n "$dump_only" ] && cpt_args="$cpt_args $POSTDUMP"
expr $tname : "static" > /dev/null && {
expr $tdir : ".*static$" > /dev/null && {
save_fds $PID $ddump/dump.fd
save_maps $PID $ddump/dump.maps
}
......@@ -744,7 +744,7 @@ EOF
fi
if [ -n "$dump_only" ]; then
expr $tname : "static" > /dev/null && {
expr $tdir : ".*static$" > /dev/null && {
save_fds $PID $ddump/dump.fd.after
diff_fds $ddump/dump.fd $ddump/dump.fd.after || return 1
......@@ -782,7 +782,7 @@ EOF
[ -n "$PIDNS" ] && PID=`cat $TPID`
expr $tname : "static" > /dev/null && {
expr $tdir : ".*static$" > /dev/null && {
save_fds $PID $ddump/restore.fd
save_maps $PID $ddump/restore.maps
diff_fds $ddump/dump.fd $ddump/restore.fd || return 2
......
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