test: Use FINIT_CONF from autoconf instead of hardcoded /etc/finit.conf

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-22 14:34:22 +01:00
1 parent 765e1eb640
commit 407c524088
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ set -eu
# Test
say 'Set up a service'
cp "$TEST_DIR"/service.sh test_root/bin
texec sh -c 'echo "service [2345] kill:20 log /bin/service.sh" > /etc/finit.conf'
texec sh -c "echo 'service [2345] kill:20 log /bin/service.sh' > $FINIT_CONF"
say 'Reload Finit'
texec kill -SIGHUP 1
@@ -15,7 +15,7 @@ service_pids=$(texec pgrep -P 1 | wc -l)
assert 'One service is running' "$service_pids" -eq 1
say 'Remove the service'
texec sh -c 'echo > /etc/finit.conf'
texec sh -c "echo > $FINIT_CONF"
say 'Reload Finit'
texec kill -SIGHUP 1