[CRIU] [PATCH] test: return the iteration number to the end of the test path

Andrew Vagin avagin at openvz.org
Mon Dec 1 03:56:19 PST 2014


When we generate a path to the previous images, we take a directory name
and the previous iteration number.

Reported-by: Mr Jenkins
Signed-off-by: Andrew Vagin <avagin at openvz.org>
---
 test/zdtm.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/zdtm.sh b/test/zdtm.sh
index 9ee1cf4..aacdc71 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -650,11 +650,12 @@ EOF
 		gen_args="$gen_args --force-irmap"
 	fi
 
+	ddump=`readlink -fm dump/$test_name/$PID/$i`
 	for i in `seq $ITERATIONS`; do
 		local cpt_args=
 		local dump_only=
 		local dump_cmd="dump"
-		ddump=`readlink -fm dump/$test_name/$i/$PID`
+		ddump=`dirname $ddump`/$i
 		DUMP_PATH=$ddump
 		echo Dump $PID
 		mkdir -p $ddump
-- 
1.9.3



More information about the CRIU mailing list