public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/test/shell dmeventd-restart.sh
@ 2012-03-16 19:11 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2012-03-16 19:11 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2012-03-16 19:11:30
Modified files:
test/shell : dmeventd-restart.sh
Log message:
Skip dmeventd restart test
If dmevendt is not in /sbin, do not try to run restarting test.
FIXME: add some workaround for testing.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/shell/dmeventd-restart.sh.diff?cvsroot=lvm2&r1=1.2&r2=1.3
--- LVM2/test/shell/dmeventd-restart.sh 2012/03/16 13:00:06 1.2
+++ LVM2/test/shell/dmeventd-restart.sh 2012/03/16 19:11:29 1.3
@@ -14,6 +14,12 @@
which mkfs.ext2 || skip
aux prepare_dmeventd
+
+# Currently dmeventd doesn't support any other location
+# for dmeventd restart, so FIXME in dmeventd
+# and update this check
+test -x /sbin/dmeventd || skip
+
aux prepare_vg 5
lvcreate -m 3 --ig -L 1 -n 4way $vg
^ permalink raw reply [flat|nested] 2+ messages in thread
* LVM2/test/shell dmeventd-restart.sh
@ 2012-03-20 13:35 zkabelac
0 siblings, 0 replies; 2+ messages in thread
From: zkabelac @ 2012-03-20 13:35 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2012-03-20 13:35:46
Modified files:
test/shell : dmeventd-restart.sh
Log message:
Sleep longer in the test so it really dies properly
and check for right exit code from pgrep
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/shell/dmeventd-restart.sh.diff?cvsroot=lvm2&r1=1.4&r2=1.5
--- LVM2/test/shell/dmeventd-restart.sh 2012/03/20 10:48:59 1.4
+++ LVM2/test/shell/dmeventd-restart.sh 2012/03/20 13:35:46 1.5
@@ -31,10 +31,15 @@
# 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-20 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-16 19:11 LVM2/test/shell dmeventd-restart.sh zkabelac
2012-03-20 13:35 zkabelac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).