mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
test: Remove unnecessary mkdir
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
c2bb46f18c
commit
ee31c8551f
2 files changed
+4
-3
No files matched your search
+4
-2
@@ -85,8 +85,10 @@ shift
|
|||||||
|
|
||||||
trap teardown EXIT
|
trap teardown EXIT
|
||||||
|
|
||||||
export FINIT_CONF=$(grep FINIT_CONF "$(dirname "$0")/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
|
FINIT_CONF=$(grep FINIT_CONF "$(dirname "$0")/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
|
||||||
export FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
|
export FINIT_CONF
|
||||||
|
FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
|
||||||
|
export FINIT_CONF_DIR
|
||||||
|
|
||||||
log "$color_reset" 'Test start' ''
|
log "$color_reset" 'Test start' ''
|
||||||
log "$color_reset" '--' ''
|
log "$color_reset" '--' ''
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ assert_num_children() {
|
|||||||
# Test
|
# Test
|
||||||
say 'Set up a service'
|
say 'Set up a service'
|
||||||
cp "$TEST_DIR"/service.sh test_root/bin
|
cp "$TEST_DIR"/service.sh test_root/bin
|
||||||
texec mkdir -p "$(dirname "$FINIT_CONF")"
|
|
||||||
texec sh -c "echo 'service [2345] kill:20 log /bin/service.sh' > $FINIT_CONF"
|
texec sh -c "echo 'service [2345] kill:20 log /bin/service.sh' > $FINIT_CONF"
|
||||||
|
|
||||||
say 'Reload Finit'
|
say 'Reload Finit'
|
||||||
|
|||||||
Reference in new issue
Block a user