test: Print Environment and FS for debugging

This commit is contained in:
Jacques de Laval
2021-02-20 13:49:12 +01:00
parent 7965dbd13f
commit dd6af87d6e
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -14,6 +14,8 @@ binaries = $(testroot_bin)/cat \
$(testroot_bin)/cp \
$(testroot_bin)/date \
$(testroot_bin)/echo \
$(testroot_bin)/env \
$(testroot_bin)/find \
$(testroot_bin)/kill \
$(testroot_bin)/ls \
$(testroot_bin)/mkdir \
+9 -1
View File
@@ -45,11 +45,19 @@ TEST="$1"
TEST_DIR=$(dirname "$TEST")
shift
trap teardown EXIT
# trap teardown EXIT
log "$color_reset" 'Test start' ''
log "$color_reset" '--' ''
>&2 echo Environment:
>&2 ./testenv_start.sh env
>&2 echo --
>&2 echo Filesystem:
>&2 ./testenv_start.sh find /
>&2 echo --
exit
# Setup
./testenv_start.sh finit &
finit_ppid=$!