mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
test: Minor tweaks of how/when to print testenv stuff
Signed-off-by: Magnus Malm <magnusmalm@gmail.com>
This commit is contained in:
1 parent
5e20abef8d
commit
3ec788a6cf
2 files changed
+7
-5
No files matched your search
+7
-3
@@ -96,13 +96,17 @@ TEST_NAME="$(dirname "$0")"
|
|||||||
TEST_NAME=${TEST_NAME#*/}
|
TEST_NAME=${TEST_NAME#*/}
|
||||||
export TEST_NAME
|
export TEST_NAME
|
||||||
|
|
||||||
log "$color_reset" 'Test start' ''
|
# Setup test environment
|
||||||
log "$color_reset" '--' ''
|
|
||||||
|
|
||||||
# Setup
|
|
||||||
"$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
|
||||||
|
|
||||||
|
>&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")
|
finit_pid=$(retry "pgrep -P $finit_ppid")
|
||||||
|
|
||||||
tty=/dev/$(texec cat /sys/class/tty/console/active)
|
tty=/dev/$(texec cat /sys/class/tty/console/active)
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ set -eu
|
|||||||
TEST_DIR=$(dirname "$0")
|
TEST_DIR=$(dirname "$0")
|
||||||
TESTS_ROOT="$(pwd)/${TEST_DIR}/test_root"
|
TESTS_ROOT="$(pwd)/${TEST_DIR}/test_root"
|
||||||
|
|
||||||
>&2 echo "Hint: Execute 'test/testenv_enter.sh' to enter the test namespace"
|
|
||||||
|
|
||||||
unshare=$(command -v unshare)
|
unshare=$(command -v unshare)
|
||||||
chroot=$(command -v chroot)
|
chroot=$(command -v chroot)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user