[CRIU] [PATCH] zdtm: remove error messages, that this directory is exist
Andrey Vagin
avagin at openvz.org
Wed Jul 10 16:16:28 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 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