[CRIU] [PATCH] zdtm.sh: don't annotate printing separator line

Pavel Emelyanov xemul at parallels.com
Thu Jan 23 01:26:54 PST 2014


On 01/22/2014 06:33 PM, Andrey Vagin wrote:
> It's useful, if you like execute bash -x zdtm.sh.
> zdtm_sep isn't interesting for debugging needs.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index 8ccdabb..708d6f8 100755
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -175,7 +175,8 @@ BATCH_TEST=0
>  SPECIFIED_NAME_USED=0
>  
>  zdtm_sep()
> -{
> +{ (
> +	set +x
>  	local msg=$1
>  	[ -n "$msg" ] && msg=" $msg "
>  	awk -v m=${2:-=} -v "msg=$msg" '
> @@ -186,7 +187,7 @@ zdtm_sep()
>  			gsub(/ /, m, sep);
>  			printf("%s%s%s\n",sep,msg,sep);
>  		}' < /dev/null
> -}
> +) }
>  
>  check_criu()
>  {
> 


applied


More information about the CRIU mailing list