test: Print Environment and FS for debugging

This commit is contained in:
Jacques de Laval committed 2021-02-20 13:49:12 +01:00
1 parent 7965dbd13f
commit dd6af87d6e
2 files changed
+11 -1

No files matched your search

+2
View File
@@ -14,6 +14,8 @@ binaries = $(testroot_bin)/cat \
$(testroot_bin)/cp \ $(testroot_bin)/cp \
$(testroot_bin)/date \ $(testroot_bin)/date \
$(testroot_bin)/echo \ $(testroot_bin)/echo \
$(testroot_bin)/env \
$(testroot_bin)/find \
$(testroot_bin)/kill \ $(testroot_bin)/kill \
$(testroot_bin)/ls \ $(testroot_bin)/ls \
$(testroot_bin)/mkdir \ $(testroot_bin)/mkdir \
+9 -1
View File
@@ -45,11 +45,19 @@ TEST="$1"
TEST_DIR=$(dirname "$TEST") TEST_DIR=$(dirname "$TEST")
shift shift
trap teardown EXIT # trap teardown EXIT
log "$color_reset" 'Test start' '' log "$color_reset" 'Test start' ''
log "$color_reset" '--' '' 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 # Setup
./testenv_start.sh finit & ./testenv_start.sh finit &
finit_ppid=$! finit_ppid=$!