diff --git a/test_execution.sh b/test_execution.sh index d8f1a73..244729f 100644 --- a/test_execution.sh +++ b/test_execution.sh @@ -40,7 +40,7 @@ EOF # 3. PIPESTATUS[0] captures the exit code of the eval "$CMD" export PYTHONUNBUFFERED=1 echo "--- Execution Start ---" | tee -a >(sed 's/$/
/' >> "$LOG_FILE") -cd "$REPO_PATH" && stdbuf -oL -eL eval "$CMD" 2>&1 | tee -a >(sed 's/$/
/' >> "$LOG_FILE") +cd "$REPO_PATH" && stdbuf -oL -eL /bin/bash -c "$CMD" 2>&1 | tee -a >(sed 's/$/
/' >> "$LOG_FILE") EXIT_CODE=${PIPESTATUS[0]} echo "--- Execution End (Exit Code: $EXIT_CODE) ---" | tee -a >(sed 's/$/
/' >> "$LOG_FILE")