[CRIU] [PATCH] zdtm: remove error messages, that this directory is exist

Andrew Vagin avagin at parallels.com
Thu Jul 11 04:29:18 EDT 2013


Pls, ignore this patch, I resent it as a part of series
On Thu, Jul 11, 2013 at 12:16:28AM +0400, Andrey Vagin wrote:
> Like this:
> mkdir: cannot create directory ‘/tmp/criu-root.wt2oW0/lib64’: File exists
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index c7c47c6..858175a 100755
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -217,10 +217,10 @@ construct_root()
>  	local libdir=$root/lib
>  	local libdir2=$root/lib64
>  
> -	mkdir $root/bin
> +	mkdir -p $root/bin
>  	cp $ps_path $root/bin
>  
> -	mkdir $libdir $libdir2
> +	mkdir -p $libdir $libdir2
>  	for i in `ldd $test_path $ps_path | grep -P '^\s' | awk '{ print $1 }' | grep -v vdso`; do
>  		local lib=`basename $i`
>  		[ -f $libdir/$lib ] && continue ||
> -- 
> 1.8.3.1
> 


More information about the CRIU mailing list