mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
test: Add testenv_enter.sh to ease debugging testenv
The script testenv_enter.sh, by default, runs /bin/sh in the environment currently setup. A bit easier than copy pasting the old hint text printed before test run. Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
4480010d4a
commit
3d01728d2e
3 files changed
+26
-1
No files matched your search
@@ -83,6 +83,7 @@ teardown() {
|
||||
texec kill -SIGUSR2 1
|
||||
|
||||
wait
|
||||
rm "$TEST_DIR"/running_test.pid
|
||||
}
|
||||
|
||||
trap teardown EXIT
|
||||
@@ -98,6 +99,7 @@ log "$color_reset" '--' ''
|
||||
# Setup
|
||||
"$TEST_DIR/testenv_start.sh" finit &
|
||||
finit_ppid=$!
|
||||
echo "$finit_ppid" > "$TEST_DIR"/running_test.pid
|
||||
finit_pid=$(retry "pgrep -P $finit_ppid")
|
||||
|
||||
tty=/dev/$(texec cat /sys/class/tty/console/active)
|
||||
|
||||
Reference in new issue
Block a user