mirror of
https://github.com/troglobit/finit.git
synced 2026-10-03 06:23:11 +07:00
test: Minor tweaks of how/when to print testenv stuff
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
+7
-3
@@ -96,13 +96,17 @@ TEST_NAME="$(dirname "$0")"
|
||||
TEST_NAME=${TEST_NAME#*/}
|
||||
export TEST_NAME
|
||||
|
||||
log "$color_reset" 'Test start' ''
|
||||
log "$color_reset" '--' ''
|
||||
# Setup test environment
|
||||
|
||||
# Setup
|
||||
"$TEST_DIR/testenv_start.sh" finit &
|
||||
finit_ppid=$!
|
||||
echo "$finit_ppid" > "$TEST_DIR"/running_test.pid
|
||||
|
||||
>&2 echo "Hint: Execute 'test/testenv_enter.sh' to enter the test namespace"
|
||||
>&2 echo "finit conf '$FINIT_CONF'"
|
||||
>&2 echo "finit_conf dir '$FINIT_CONF_DIR'"
|
||||
log "$color_reset" 'Setup of test environment done' ''
|
||||
|
||||
finit_pid=$(retry "pgrep -P $finit_ppid")
|
||||
|
||||
tty=/dev/$(texec cat /sys/class/tty/console/active)
|
||||
|
||||
@@ -5,8 +5,6 @@ set -eu
|
||||
TEST_DIR=$(dirname "$0")
|
||||
TESTS_ROOT="$(pwd)/${TEST_DIR}/test_root"
|
||||
|
||||
>&2 echo "Hint: Execute 'test/testenv_enter.sh' to enter the test namespace"
|
||||
|
||||
unshare=$(command -v unshare)
|
||||
chroot=$(command -v chroot)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user