Blame SOURCES/print-failed-test-output

a98108
#!/bin/bash
a98108
a98108
shopt -s failglob
a98108
a98108
# Print output from failing tests
a98108
dashes=$(printf "%80s" '' | tr ' ' '-')
a98108
for exit_file in t/test-results/*.exit; do
a98108
    [ "$(cat "$exit_file")" -eq 0 ] && continue
a98108
    out_file="${exit_file%exit}out"
a98108
    printf '\n%s\n%s\n%s\n' "$dashes" "$out_file" "$dashes"
a98108
    cat "$out_file"
a98108
done
a98108
exit 1