print stdout for tap and not-tap

This commit is contained in:
Thomas Levine 2016-01-27 10:17:33 +00:00
parent 0f1c2848b4
commit 1cd9991587

7
urchin
View File

@ -106,6 +106,11 @@ recurse() {
fi fi
echo "${not}ok $((n + 1)) - ${skip}${potential_test}" echo "${not}ok $((n + 1)) - ${skip}${potential_test}"
echo "${result} ${potential_test}" >> "$logfile" echo "${result} ${potential_test}" >> "$logfile"
if [ "$result" == fail ]; then
echo '# ------------ Begin output ------------'
sed 's/^/# /' "$stdout_file"
echo '# ------------ End output ------------'
fi
else else
indent $indent_level indent $indent_level
case "$result" in case "$result" in
@ -121,7 +126,7 @@ recurse() {
printf '%s\n' "${potential_test}" printf '%s\n' "${potential_test}"
printf '%s\n' "${potential_test} failed" >> "$logfile" printf '%s\n' "${potential_test} failed" >> "$logfile"
printf '\033[31m' # Print output captured from failed test in red. printf '\033[31m' # Print output captured from failed test in red.
sed 's/^/# /' "$stdout_file" cat "$stdout_file"
printf '\033[0m' printf '\033[0m'
;; ;;
skip) skip)