diff --git a/tests/funcs/tap.sh b/tests/funcs/tap.sh index 04f9b8bc..988786a5 100644 --- a/tests/funcs/tap.sh +++ b/tests/funcs/tap.sh @@ -43,9 +43,14 @@ t_tap_progress() local testname=$1 local result=$2 + local stmsg="" local diff="" local dmsg="" + if [[ -s $T_RESULTS/tmp/${testname}/status.msg ]]; then + stmsg="1" + fi + if [[ -s "$T_RESULTS/tmp/${testname}/dmesg.new" ]]; then dmsg="1" fi @@ -61,6 +66,7 @@ t_tap_progress() echo "# ${testname} ** skipped - permitted **" else echo "not ok ${i} - ${testname}" + case ${result} in 101) echo "# ${testname} ** skipped **" @@ -70,6 +76,13 @@ t_tap_progress() ;; esac + if [[ -n "${stmsg}" ]]; then + echo "#" + echo "# status:" + echo "#" + cat $T_RESULTS/tmp/${testname}/status.msg | sed 's/^/# - /' + fi + if [[ -n "${diff}" ]]; then echo "#" echo "# diff:"