t/run: Add some spacing and formatting to failed test outputs

This makes it easier to identify the outputs for each one of the failed
tests.
pull/55/head
Adrian Perez de Castro 8 years ago
parent a1bb63c93b
commit 07fb4ab214
No known key found for this signature in database
GPG Key ID: 91C559DBE4C9123B

@ -50,13 +50,16 @@ for t in "$T"/*.test ; do
done
for name in "${t_fail[@]}" ; do
printf '=== %s.out ===\n' "${name}"
echo
printf '=== %s.out\n' "${name}"
cat "${name}.out"
printf '=== %s.err ===\n' "${name}"
echo
printf '=== %s.err\n' "${name}"
cat "${name}.err"
echo
done
printf '=== passed/failed/total: %d/%d/%d ===\n' \
printf '=== passed/failed/total: %d/%d/%d\n' \
${#t_pass[@]} ${#t_fail[@]} $(( ${#t_pass[@]} + ${#t_fail[@]} ))
if [[ ${#t_fail[@]} -gt 0 ]] ; then

Loading…
Cancel
Save