Blame SOURCES/print-failed-test-output

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