Commit 6f209a2e authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

test/zdtm.sh: move -l parsing to inside case

It's more cleaner to have all options parsed in one place.
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 79f09e57
...@@ -666,6 +666,10 @@ while :; do ...@@ -666,6 +666,10 @@ while :; do
SPECIFIED_NAME_USED=1 SPECIFIED_NAME_USED=1
shift shift
;; ;;
-l)
echo $TEST_LIST | tr ' ' '\n'
exit 0
;;
*) *)
break break
;; ;;
...@@ -676,9 +680,7 @@ if [ $COMPILE_ONLY -eq 0 ]; then ...@@ -676,9 +680,7 @@ if [ $COMPILE_ONLY -eq 0 ]; then
check_criu || exit 1 check_criu || exit 1
fi fi
if [ "$1" = "-l" ]; then if [ "$1" = "-h" ]; then
echo $TEST_LIST | tr ' ' '\n'
elif [ "$1" = "-h" ]; then
cat >&2 <<EOF cat >&2 <<EOF
This script is used for executing unit tests. This script is used for executing unit tests.
Usage: Usage:
......
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