From e77f3f4d74eb668ffa888024e455740bda3c254b Mon Sep 17 00:00:00 2001 From: Magnus Malm Date: Wed, 24 Feb 2021 14:31:18 +0100 Subject: [PATCH] test: Use initctl in favor of kill -SIGHUP when reloading finit Signed-off-by: Magnus Malm --- test/test_add_remove_dynamic_service/test.sh | 4 ++-- test/test_add_remove_dynamic_service_sub_config/test.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_add_remove_dynamic_service/test.sh b/test/test_add_remove_dynamic_service/test.sh index 50eb2235..f109196d 100755 --- a/test/test_add_remove_dynamic_service/test.sh +++ b/test/test_add_remove_dynamic_service/test.sh @@ -24,7 +24,7 @@ say "Add a dynamic service in $FINIT_CONF" texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh' > $FINIT_CONF" say 'Reload Finit' -texec kill -SIGHUP 1 +texec sh -c "initctl reload" retry 'assert_num_children 1 service.sh' @@ -32,6 +32,6 @@ say 'Remove the dynamic service from /etc/finit.conf' texec sh -c "echo > $FINIT_CONF" say 'Reload Finit' -texec kill -SIGHUP 1 +texec sh -c "initctl reload" retry 'assert_num_children 0 service.sh' diff --git a/test/test_add_remove_dynamic_service_sub_config/test.sh b/test/test_add_remove_dynamic_service_sub_config/test.sh index 0f756701..a6c1f554 100755 --- a/test/test_add_remove_dynamic_service_sub_config/test.sh +++ b/test/test_add_remove_dynamic_service_sub_config/test.sh @@ -24,7 +24,7 @@ say "Add a dynamic service in $FINIT_CONF_DIR/service.conf" texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh' > $FINIT_CONF_DIR/service.conf" say 'Reload Finit' -texec kill -SIGHUP 1 +texec sh -c "initctl reload" retry 'assert_num_children 1 service.sh' @@ -32,6 +32,6 @@ say 'Remove the dynamic service from /etc/finit.d/service.conf' texec sh -c "echo > $FINIT_CONF_DIR/service.conf" say 'Reload Finit' -texec kill -SIGHUP 1 +texec sh -c "initctl reload" retry 'assert_num_children 0 service.sh'