Henri Verbeet : tests/test-driver: Avoid "head" with negative line count.
Module: vkd3d Branch: master Commit: d1e16514d0cf2c28ce946b6102bdb22861cbda99 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/d1e16514d0cf2c28ce946b6102bdb2... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Apr 4 14:45:59 2024 +0200 tests/test-driver: Avoid "head" with negative line count. It's not supported on macOS, and not needed here. --- tests/test-driver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-driver.sh b/tests/test-driver.sh index 869cc4be..b7104a34 100755 --- a/tests/test-driver.sh +++ b/tests/test-driver.sh @@ -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
participants (1)
-
Alexandre Julliard