mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
test: Add support for starting Finit in debug mode
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
70964ccb35
commit
691bc58f0e
1 file changed
+6
-2
+6
-2
@@ -16,7 +16,7 @@ pause() {
|
|||||||
|
|
||||||
toggle_finit_debug() {
|
toggle_finit_debug() {
|
||||||
say 'Toggle finit debug'
|
say 'Toggle finit debug'
|
||||||
texec sh -c "/bin/initctl debug"
|
texec initctl debug
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -104,7 +104,11 @@ export TEST_NAME
|
|||||||
# Setup test environment
|
# Setup test environment
|
||||||
|
|
||||||
# Setup test environment
|
# Setup test environment
|
||||||
"$TEST_DIR/testenv_start.sh" finit &
|
if [ -n "${DEBUG:-}" ]; then
|
||||||
|
FINIT_ARGS="${FINIT_ARGS:-} finit.debug=on"
|
||||||
|
fi
|
||||||
|
# shellcheck disable=2086
|
||||||
|
"$TEST_DIR/testenv_start.sh" finit ${FINIT_ARGS:-} &
|
||||||
finit_ppid=$!
|
finit_ppid=$!
|
||||||
echo "$finit_ppid" > "$TESTS_ROOT"/running_test.pid
|
echo "$finit_ppid" > "$TESTS_ROOT"/running_test.pid
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user