[CRIU] [PATCH cr] zdtm.sh: check that the util "ip" containes our patches

Andrew Vagin avagin at parallels.com
Wed Aug 15 04:33:43 EDT 2012


Pls, ignore this patch.

On Tue, Aug 14, 2012 at 03:07:06PM +0400, Andrey Vagin wrote:
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
> 

> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index 4aad7c5..6fd7b75 100644
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -190,6 +190,15 @@ run_test()
>  	DUMP_PATH=`pwd`/$ddump
>  
>  	if [ -n "$PIDNS" ]; then
> +		[ -n "$CR_IP_TOOL" ] && $CR_IP_TOOL=ip

+		[ -n "$CR_IP_TOOL" ] && CR_IP_TOOL=ip

> +		$CR_IP_TOOL a help 2>&1 | grep -q showdump || {
> +			cat >&2 <<EOF
> +The util "ip" is incompatible. The good one can be cloned from
> +git://git.criu.org/iproute2. It should be compiled and a path
> +to ip is written in \$CR_IP_TOOL.
> +EOF
> +			exit 1;
> +		}
>  		args="-n uts -n ipc -n net -n pid -n mnt --root $ZDTM_ROOT --pidfile $TPID $args"
>  	fi
>  

> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list