Blame SOURCES/print-failed-test-output

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