From 55a7c7a79d08ebfa8c0b27caee01dfcb685de484 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Fri, 13 Feb 2015 15:14:56 +0300 Subject: [PATCH] test: check descriptors and maps for static tests tname doesn't contain a test type. Reported-by: Pavel Emelyanov Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/zdtm.sh b/test/zdtm.sh index 184e404ca..6f15ec8dc 100755 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -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