test: Use initctl in favor of kill -SIGHUP when reloading finit

Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
Magnus Malm committed 2021-02-24 14:31:18 +01:00
1 parent 2c055cb954
commit e77f3f4d74
2 files changed
+4 -4

No files matched your search

@@ -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'