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

Andrey Vagin avagin at openvz.org
Thu Jul 11 04:30:04 EDT 2013


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 19c3d90..bf08a58 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