Merge pull request #269 from versity/auke/tap_status_msg

Include t_fail status in tap output.
This commit is contained in:
Zach Brown
2025-12-17 11:04:00 -08:00
committed by GitHub

View File

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