Skip to content

Commit 6d5ab5b

Browse files
author
zenus
committed
test: preserve full logs for failed suites
1 parent 4b6ef0d commit 6d5ab5b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/run-all-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ for suite in "${TEST_SUITES[@]}"; do
255255
FAILED_SUITES+=("$suite")
256256
line=$(echo -e "${RED}FAILED${NC}: $suite (exit code: $exit_code, failed: $failed, ${elapsed_display})")
257257
printf '%d\t%s\n' "$elapsed_ms" "$line" >> "$SORT_FILE"
258-
# Save failure detail for later display
259-
echo "$output" | tail -30 > "$OUTPUT_DIR/${safe_name}.detail"
258+
# Preserve the full suite log so CI surfaces the exact failing assertion.
259+
printf '%s\n' "$output" > "$OUTPUT_DIR/${safe_name}.detail"
260260
else
261261
zsh_label=""
262262
needs_zsh "$suite" && zsh_label=" (zsh)"

0 commit comments

Comments
 (0)