Blame SOURCES/print-failed-test-output

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