[CRIU] [PATCH 4/7] test/zdtm.sh: fix check for test name
Kir Kolyshkin
kir at openvz.org
Mon Feb 6 11:57:26 EST 2012
(1) We should use -w so we can't match a substring
(2) No need to use quotes
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
test/zdtm.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/zdtm.sh b/test/zdtm.sh
index 4a4c756..9575fbf 100644
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -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
--
1.7.5.4
More information about the CRIU
mailing list