mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
test: Minor cleanup in lib.sh
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
eda9ae4c3e
commit
27ad3b5a7f
1 file changed
+3
@@ -90,14 +90,17 @@ trap teardown EXIT
|
|||||||
|
|
||||||
FINIT_CONF=$(grep FINIT_CONF "$TEST_DIR/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
|
FINIT_CONF=$(grep FINIT_CONF "$TEST_DIR/../config.h" | cut -d' ' -f3 | cut -d'"' -f2)
|
||||||
export FINIT_CONF
|
export FINIT_CONF
|
||||||
|
|
||||||
FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
|
FINIT_CONF_DIR="$(dirname "$FINIT_CONF")"/finit.d
|
||||||
export FINIT_CONF_DIR
|
export FINIT_CONF_DIR
|
||||||
|
|
||||||
TEST_NAME="$(dirname "$0")"
|
TEST_NAME="$(dirname "$0")"
|
||||||
TEST_NAME=${TEST_NAME#*/}
|
TEST_NAME=${TEST_NAME#*/}
|
||||||
export TEST_NAME
|
export TEST_NAME
|
||||||
|
|
||||||
# Setup test environment
|
# Setup test environment
|
||||||
|
|
||||||
|
# Setup test environment
|
||||||
"$TEST_DIR/testenv_start.sh" finit &
|
"$TEST_DIR/testenv_start.sh" finit &
|
||||||
finit_ppid=$!
|
finit_ppid=$!
|
||||||
echo "$finit_ppid" > "$TEST_DIR"/running_test.pid
|
echo "$finit_ppid" > "$TEST_DIR"/running_test.pid
|
||||||
|
|||||||
Reference in new issue
Block a user