Commit 87368019 authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

test/zdtm.sh: move unrecognized option to inside case

Easier that way
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 11d50423
......@@ -696,6 +696,10 @@ while :; do
usage
exit 0
;;
-*)
echo "Unrecognized option $1, aborting!" 1>&2
exit 1
;;
*)
break
;;
......@@ -706,9 +710,7 @@ if [ $COMPILE_ONLY -eq 0 ]; then
check_criu || exit 1
fi
if [ "${1:0:1}" = '-' ]; then
echo "unrecognized option $1"
elif [ $SPECIFIED_NAME_USED -eq 1 ]; then
if [ $SPECIFIED_NAME_USED -eq 1 ]; then
if [ $# -eq 0 ]; then
echo "test name should be provided"
exit 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