[PATCH] zdtm: Add post-dump script

Cyrill Gorcunov gorcunov at openvz.org
Fri Jul 12 15:46:22 EDT 2013


Use it together with -d option

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/post-dump.sh | 8 ++++++++
 test/zdtm.sh      | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100755 test/post-dump.sh

diff --git a/test/post-dump.sh b/test/post-dump.sh
new file mode 100755
index 0000000..bf411c6
--- /dev/null
+++ b/test/post-dump.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+action=$1
+shift
+
+[ "$action" == post-dump ] && {
+        exit -1
+}
diff --git a/test/zdtm.sh b/test/zdtm.sh
index 9749b90..bacdfb0 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -499,7 +499,8 @@ cd `dirname $0` || exit 1
 
 while :; do
 	if [ "$1" = "-d" ]; then
-		ARGS="-s"
+		script=`dirname $CRIU`/test/post-dump.sh
+		ARGS="-s --action-script $script"
 		shift
 		continue
 	fi
-- 
1.8.1.4


--LyciRD1jyfeSSjG0--


More information about the CRIU mailing list