mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
test: force enable debug logs and HUP Finit before test
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
a0bc23c48f
commit
5002c74876
1 file changed
+4
-2
+4
-2
@@ -154,7 +154,7 @@ if [ -n "${DEBUG:-}" ]; then
|
|||||||
FINIT_ARGS="${FINIT_ARGS:-} finit.debug=on"
|
FINIT_ARGS="${FINIT_ARGS:-} finit.debug=on"
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
"$TEST_DIR/tenv/start.sh" finit ${FINIT_ARGS:-} &
|
"$TEST_DIR/tenv/start.sh" finit ${FINIT_ARGS:-} finit.debug=on &
|
||||||
finit_ppid=$!
|
finit_ppid=$!
|
||||||
echo "$finit_ppid" > "$TENV_ROOT"/running_test.pid
|
echo "$finit_ppid" > "$TENV_ROOT"/running_test.pid
|
||||||
|
|
||||||
@@ -169,4 +169,6 @@ fi
|
|||||||
|
|
||||||
#tty=/dev/$(texec cat /sys/class/tty/console/active)
|
#tty=/dev/$(texec cat /sys/class/tty/console/active)
|
||||||
#texec cat "$tty" &
|
#texec cat "$tty" &
|
||||||
#sleep 1
|
sleep 5
|
||||||
|
kill -HUP "$finit_pid"
|
||||||
|
|
||||||
Reference in new issue
Block a user