From fba58085c6a9b34daac8d9cbd6b63da4a7d2f281 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 12 Jan 2023 09:01:52 +0100 Subject: [PATCH] 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 --- test/notify.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/notify.sh b/test/notify.sh index 4e55e9d9..3636c8f0 100755 --- a/test/notify.sh +++ b/test/notify.sh @@ -48,6 +48,13 @@ test_one() assert_status "serv" "running" 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" sleep 1 assert_status "serv" "stopped"