mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
build(scripts/lib): allow MAKE_TIMED=1 to show last 20 lines of failed jobs (#22985)
Refs #22978
This commit is contained in:
committed by
GitHub
parent
03d0fc4f4c
commit
3bd840fe27
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user