mirror of
https://github.com/obra/superpowers.git
synced 2026-04-22 09:29:03 +08:00
test: show Claude output in real-time during integration test
Use tee instead of redirection so test output is visible during execution while still being saved to file for analysis.
This commit is contained in:
@@ -147,11 +147,15 @@ IMPORTANT: Follow the skill exactly. I will be verifying that you:
|
|||||||
|
|
||||||
Begin now. Execute the plan."
|
Begin now. Execute the plan."
|
||||||
|
|
||||||
cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all > "$OUTPUT_FILE" 2>&1 || {
|
echo "Running Claude (output will be shown below and saved to $OUTPUT_FILE)..."
|
||||||
echo "EXECUTION FAILED"
|
echo "================================================================================"
|
||||||
cat "$OUTPUT_FILE"
|
cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all 2>&1 | tee "$OUTPUT_FILE" || {
|
||||||
|
echo ""
|
||||||
|
echo "================================================================================"
|
||||||
|
echo "EXECUTION FAILED (exit code: $?)"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
echo "================================================================================"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Execution complete. Analyzing results..."
|
echo "Execution complete. Analyzing results..."
|
||||||
|
|||||||
Reference in New Issue
Block a user