test: Remove unnecessary mkdir

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval
2021-02-22 17:21:55 +01:00
parent c2bb46f18c
commit ee31c8551f
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -85,8 +85,10 @@ shift
trap teardown EXIT
export FINIT_CONF=$(grep FINIT_CONF "$(dirname "$0")/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
export FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
FINIT_CONF=$(grep FINIT_CONF "$(dirname "$0")/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
export FINIT_CONF
FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
export FINIT_CONF_DIR
log "$color_reset" 'Test start' ''
log "$color_reset" '--' ''
-1
View File
@@ -9,7 +9,6 @@ assert_num_children() {
# Test
say 'Set up a service'
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"
say 'Reload Finit'