zdtm: remove bashisms from hooks

Submitted by Andrei Vagin on May 10, 2016, 12:59 a.m.

Details

Message ID 1462841941-21447-1-git-send-email-avagin@openvz.org
State Accepted
Series "zdtm: remove bashisms from hooks"
Commit e711068ad6f4f90f908ee19afb9f59ee1d5f2248
Headers show

Commit Message

Andrei Vagin May 10, 2016, 12:59 a.m.
From: Andrew Vagin <avagin@virtuozzo.com>

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

Patch hide | download patch | download mbox

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

Comments

Pavel Emelianov May 11, 2016, 12:39 p.m.
Applied