From ee31c8551f2f466e2fcbb34f7d0aa015ec49cb53 Mon Sep 17 00:00:00 2001 From: Jacques de Laval Date: Mon, 22 Feb 2021 17:21:55 +0100 Subject: [PATCH] test: Remove unnecessary mkdir Signed-off-by: Jacques de Laval --- test/runtest.sh | 6 ++++-- test/test_start_stop_service/test.sh | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/runtest.sh b/test/runtest.sh index 203d27e7..8be49826 100755 --- a/test/runtest.sh +++ b/test/runtest.sh @@ -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" '--' '' diff --git a/test/test_start_stop_service/test.sh b/test/test_start_stop_service/test.sh index fc9a2852..0ba05b05 100755 --- a/test/test_start_stop_service/test.sh +++ b/test/test_start_stop_service/test.sh @@ -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'