print stdout for tap and not-tap
This commit is contained in:
parent
0f1c2848b4
commit
1cd9991587
7
urchin
7
urchin
@ -106,6 +106,11 @@ recurse() {
|
||||
fi
|
||||
echo "${not}ok $((n + 1)) - ${skip}${potential_test}"
|
||||
echo "${result} ${potential_test}" >> "$logfile"
|
||||
if [ "$result" == fail ]; then
|
||||
echo '# ------------ Begin output ------------'
|
||||
sed 's/^/# /' "$stdout_file"
|
||||
echo '# ------------ End output ------------'
|
||||
fi
|
||||
else
|
||||
indent $indent_level
|
||||
case "$result" in
|
||||
@ -121,7 +126,7 @@ recurse() {
|
||||
printf '%s\n' "${potential_test}"
|
||||
printf '%s\n' "${potential_test} failed" >> "$logfile"
|
||||
printf '\033[31m' # Print output captured from failed test in red.
|
||||
sed 's/^/# /' "$stdout_file"
|
||||
cat "$stdout_file"
|
||||
printf '\033[0m'
|
||||
;;
|
||||
skip)
|
||||
|
Loading…
Reference in New Issue
Block a user