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

It's not supported on macOS, and not needed here.
This commit is contained in:
Henri Verbeet 2024-04-04 14:45:59 +02:00 committed by Alexandre Julliard
parent ca2f54e729
commit d1e16514d0
Notes: Alexandre Julliard 2024-04-09 15:47:10 -05:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/770

View File

@ -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 # In case of SIGABRT or SIGSEGV, add tag and print second to last line, containing the
# "(core dumped)" message. # "(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 if [ "$tweaked_estatus" -eq 134 ]; then
details="$details# [SIGABRT] <fade>$nxt_to_last_line<reset>" details="$details# [SIGABRT] <fade>$nxt_to_last_line<reset>"
elif [ "$tweaked_estatus" -eq 139 ]; then elif [ "$tweaked_estatus" -eq 139 ]; then