Commit 60a35bfa authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Andrey Vagin

test/zdtm.sh: fix check for test name

(1) We should use -w so we can't match a substring
(2) No need to use quotes
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Signed-off-by: 's avatarAndrey Vagin <avagin@gmail.com>
parent 0bf98db4
......@@ -111,9 +111,9 @@ elif [ "$1" == "-l" ]; then
echo $UTS_TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g'
echo $IPC_TEST_LIST | sed -e "s#$ZP/##g" -e 's/ /\n/g'
else
if echo "$UTS_TEST_LIST" | fgrep -q "$1" ; then
if echo $UTS_TEST_LIST | fgrep -qw $1; then
run_test $1 -n uts || case_error $1
elif echo "$IPC_TEST_LIST" | fgrep -q "$1" ; then
elif echo $IPC_TEST_LIST | fgrep -qw $1; then
run_test $1 -n ipc || case_error $1
else
run_test $1 || case_error $1
......
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