1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-09 01:18:39 +03:00

Sleep longer in the test so it really dies properly

and check for right exit code from pgrep
This commit is contained in:
Zdenek Kabelac 2012-03-20 13:35:46 +00:00
parent 7e7c9bb2f3
commit adbf9a803a

View File

@ -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