mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00:00
test: Improve add/remove sub config test
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
6bcb9e9030
commit
51fe6a15e9
1 file changed
+2
-4
@@ -20,16 +20,14 @@ test_teardown() {
|
|||||||
|
|
||||||
# Test
|
# Test
|
||||||
say "Test start $(date)"
|
say "Test start $(date)"
|
||||||
# toggle_finit_debug
|
|
||||||
say "Add a dynamic service in $FINIT_CONF_DIR/service.conf"
|
say "Add a dynamic service in $FINIT_CONF_DIR/service.conf"
|
||||||
cp "$TEST_DIR"/common/service.sh "$TEST_DIR"/test_root/test_assets/
|
cp "$TEST_DIR"/common/service.sh "$TEST_DIR"/test_root/test_assets/
|
||||||
texec sh -c "echo 'service [2345] kill:20 log /test_assets/service.sh pid:/run/service.pid' > $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'
|
say 'Reload Finit'
|
||||||
texec kill -SIGHUP 1
|
texec kill -SIGHUP 1
|
||||||
|
|
||||||
pause
|
|
||||||
|
|
||||||
retry 'assert_num_children 1 service.sh' 5
|
retry 'assert_num_children 1 service.sh' 5
|
||||||
|
|
||||||
say 'Remove the dynamic service from /etc/finit.d/service.conf'
|
say 'Remove the dynamic service from /etc/finit.d/service.conf'
|
||||||
|
|||||||
Reference in new issue
Block a user