mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
test: extend notify.sh with checks for 'restart serv' and 'reload'
Issue #343. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -54,6 +54,19 @@ test_one()
|
||||
assert_status "serv" "running"
|
||||
assert_cond "service/serv/ready"
|
||||
|
||||
say "Verify 'ready' is reasserted on 'initctl restart serv' ..."
|
||||
texec sh -c "initctl restart serv"
|
||||
sleep 1
|
||||
assert_status "serv" "running"
|
||||
assert_cond "service/serv/ready"
|
||||
|
||||
say "Verify 'ready' is reasserted on 'initctl reload' ..."
|
||||
texec sh -c "initctl reload"
|
||||
sleep 1
|
||||
texec sh -c "initctl; initctl cond dump"
|
||||
assert_status "serv" "running"
|
||||
assert_cond "service/serv/ready"
|
||||
|
||||
say "Verify 'ready' is deasserted on stop ..."
|
||||
texec sh -c "initctl stop serv"
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user