summaryrefslogtreecommitdiffstats
path: root/test/shell
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-03-20 13:35:46 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2012-03-20 13:35:46 +0000
commit8100989dbb9d2b4764e3897cb92325f7619b8e54 (patch)
tree30c00ac37f7b837878cbe7951c5d62a0e7d81077 /test/shell
parentef199faeda5f41851f72401147ba8514c8213731 (diff)
downloadlvm2-8100989dbb9d2b4764e3897cb92325f7619b8e54.tar.gz
lvm2-8100989dbb9d2b4764e3897cb92325f7619b8e54.tar.xz
lvm2-8100989dbb9d2b4764e3897cb92325f7619b8e54.zip
Sleep longer in the test so it really dies properly
and check for right exit code from pgrep
Diffstat (limited to 'test/shell')
-rw-r--r--test/shell/dmeventd-restart.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/shell/dmeventd-restart.sh b/test/shell/dmeventd-restart.sh
index 285e6cce..fa9db468 100644
--- a/test/shell/dmeventd-restart.sh
+++ b/test/shell/dmeventd-restart.sh
@@ -31,10 +31,15 @@ grep 'already monitored' lvchange.out
# now try what happens if no dmeventd is running
kill -9 $(cat LOCAL_DMEVENTD)
+rm LOCAL_DMEVENTD
+
dmeventd -R -f &
-sleep 1
+echo $! >LOCAL_DMEVENTD
+
+# wait longer as tries to communicate with killed daemon
+sleep 7
# now dmeventd should not be running
-pgrep dmeventd
+not pgrep dmeventd
rm LOCAL_DMEVENTD
# set dmeventd path