[CRIU] [PATCH] zdtm: remove bashisms from hooks

Andrey Vagin avagin at openvz.org
Mon May 9 17:59:01 PDT 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/zdtm/static/inotify_irmap.hook | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/zdtm/static/inotify_irmap.hook b/test/zdtm/static/inotify_irmap.hook
index eca6bfa..ed3691e 100755
--- a/test/zdtm/static/inotify_irmap.hook
+++ b/test/zdtm/static/inotify_irmap.hook
@@ -2,13 +2,14 @@
 
 umask 0000
 
-[ "$1" == "--pre-restore" ] && {
+[ "$1" = "--pre-restore" ] && {
+	exit
 	# emulate rsync
 	rm -rf etc/zdtm-test
 	touch etc/zdtm-test
 }
 
-[ "$1" == "--post-pre-dump" ] && {
+[ "$1" = "--post-pre-dump" ] && {
 	echo 'invalidate the irmap cache'
 	mv etc/zdtm-test etc/zdtm-test2
 	mv etc/zdtm-test1 etc/zdtm-test
-- 
2.7.4



More information about the CRIU mailing list