[CRIU] [PATCH 2/2] zdtm.sh: detect unrecognized options

Pavel Emelyanov xemul at parallels.com
Fri Jan 11 07:52:00 EST 2013


On 01/11/2013 01:55 PM, Andrey Vagin wrote:
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index 511abd0..09097c6 100644
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -451,6 +451,8 @@ Options:
>  	-i : Number of ITERATIONS of dump/restore
>  	-b <commit> : Check backward compatibility
>  EOF
> +elif [ "${1:0:1}" = '-' ]; then
> +	echo "unrecognized option $1"
>  else
>  	if echo $UTS_TEST_LIST | fgrep -qw $1; then
>  		run_test $1 -n uts || case_error $1
> 


Applied both


More information about the CRIU mailing list