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

test/zdtm.sh: check for extra arguments

After parsing options we expect either 0 or 1 arguments, no more.
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 3ef2a28e
......@@ -707,6 +707,11 @@ while :; do
esac
done
if [ $# -gt 1 ]; then
echo "Too many arguments: $*" 1>&2
exit 1
fi
if [ $COMPILE_ONLY -eq 0 ]; then
check_criu || exit 1
fi
......
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