File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
33
4+ # Debug: Show bash version and options in CI
5+ if [[ -n " ${CI:- } " ]]; then
6+ echo " [DEBUG] Bash version: $BASH_VERSION " >&2
7+ echo " [DEBUG] Bash options: $- " >&2
8+ fi
9+
410# Troupe Multi-Node Test Runner - Refactored Version
511# Orchestrates multi-node tests with proper cleanup and output synchronization
612#
@@ -146,6 +152,7 @@ cleanup() {
146152 # CRITICAL: Capture the original exit code immediately
147153 # This must be the FIRST command in cleanup to preserve test results
148154 local exit_code=$?
155+ echo " [DEBUG] Cleanup called with exit code: $exit_code " >&2
149156 log " Cleaning up test processes (exit code: $exit_code )..."
150157
151158 local cleaned_count=0
@@ -310,6 +317,7 @@ cleanup() {
310317 # CRITICAL: Exit with the original exit code from the test, not from cleanup
311318 # Without this, the script would exit with the status of the last cleanup command
312319 # This is why tests were "failing" in CI even though they succeeded
320+ echo " [DEBUG] Exiting cleanup with code: $exit_code " >&2
313321 exit $exit_code
314322}
315323
You can’t perform that action at this time.
0 commit comments