Blame SOURCES/print-failed-test-output

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