mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
test: verify readiness notification on crash/restart
Issue #343 reports that readiness notification on crash/restart is lost. This update to notify.sh reproduces that bug. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
d1ebb255c6
commit
fba58085c6
1 file changed
+7
@@ -48,6 +48,13 @@ test_one()
|
|||||||
assert_status "serv" "running"
|
assert_status "serv" "running"
|
||||||
assert_cond "service/serv/ready"
|
assert_cond "service/serv/ready"
|
||||||
|
|
||||||
|
say "Verify 'ready' is reasserted if service crashes and is restarted ..."
|
||||||
|
texec sh -c "initctl signal serv 9"
|
||||||
|
sleep 2
|
||||||
|
assert_status "serv" "running"
|
||||||
|
assert_cond "service/serv/ready"
|
||||||
|
|
||||||
|
say "Verify 'ready' is deasserted on stop ..."
|
||||||
texec sh -c "initctl stop serv"
|
texec sh -c "initctl stop serv"
|
||||||
sleep 1
|
sleep 1
|
||||||
assert_status "serv" "stopped"
|
assert_status "serv" "stopped"
|
||||||
|
|||||||
Reference in new issue
Block a user