Skip to content
Snippets Groups Projects
Commit d1e16514 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

tests/test-driver: Avoid "head" with negative line count.

It's not supported on macOS, and not needed here.
parent ca2f54e7
No related branches found
No related tags found
1 merge request!770tests/test-driver: Avoid "head" with negative line count.
Pipeline #25052 skipped
......@@ -188,7 +188,7 @@ details=$(awk "$awk_program" "$log_file")
# In case of SIGABRT or SIGSEGV, add tag and print second to last line, containing the
# "(core dumped)" message.
nxt_to_last_line=$(tail -n2 "$log_file" | head -n -1)
nxt_to_last_line=$(tail -n2 "$log_file" | head -n1)
if [ "$tweaked_estatus" -eq 134 ]; then
details="$details# [SIGABRT] <fade>$nxt_to_last_line<reset>"
elif [ "$tweaked_estatus" -eq 139 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment