From 3bd840fe27b6750f13c98b1ecf6c75992d21a70d Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 13 Mar 2026 19:41:33 +0200 Subject: [PATCH] build(scripts/lib): allow MAKE_TIMED=1 to show last 20 lines of failed jobs (#22985) Refs #22978 --- scripts/lib/timed-shell.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib/timed-shell.sh b/scripts/lib/timed-shell.sh index 07aff378c4..5192c3f3b5 100755 --- a/scripts/lib/timed-shell.sh +++ b/scripts/lib/timed-shell.sh @@ -45,6 +45,8 @@ if ((rc == 0)); then printf '%s✓%s %s (%ds)\n' "$green" "$reset" "$target" "$elapsed" else if [[ -n ${MAKE_LOGDIR:-} ]]; then + printf '%s○%s %s\n' "$dim" "$reset" "$target" + tail -n20 "$logfile" | sed 's/^/ /' printf '%s✗%s %s (%ds) → %s\n' "$red" "$reset" "$target" "$elapsed" "$logfile" else printf '%s✗%s %s (%ds)\n' "$red" "$reset" "$target" "$elapsed"