summaryrefslogtreecommitdiff
path: root/tests/claude-code
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2025-11-28 15:22:01 -0800
committerJesse Vincent <jesse@fsck.com>2025-12-17 16:44:50 -0800
commitdc11a093c326d947f9ac8e416f1cd4b17887bb9a (patch)
tree1ae8847ee4fc04c414e9a10fd682f61852f2ecd9 /tests/claude-code
parentfa946ae4652745318c3de3526f98c0e074cbdda3 (diff)
Fix syntax error in integration test
Simplified command substitution to avoid shell parsing issues. Instead of nested heredoc in command substitution, write prompt to file first then read it.
Diffstat (limited to 'tests/claude-code')
-rwxr-xr-xtests/claude-code/test-subagent-driven-development-integration.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/claude-code/test-subagent-driven-development-integration.sh b/tests/claude-code/test-subagent-driven-development-integration.sh
index 691d36b..b120da8 100755
--- a/tests/claude-code/test-subagent-driven-development-integration.sh
+++ b/tests/claude-code/test-subagent-driven-development-integration.sh
@@ -119,8 +119,8 @@ echo ""
# Capture full output to analyze
OUTPUT_FILE="$TEST_PROJECT/claude-output.txt"
-# Note: We use a longer timeout since this is integration testing
-timeout 1800 claude -p "$(cat <<'PROMPT'
+# Create prompt file
+cat > "$TEST_PROJECT/prompt.txt" <<'EOF'
I want you to execute the implementation plan at docs/plans/implementation-plan.md using the subagent-driven-development skill.
IMPORTANT: Follow the skill exactly. I will be verifying that you:
@@ -131,8 +131,11 @@ IMPORTANT: Follow the skill exactly. I will be verifying that you:
5. Use review loops when issues are found
Begin now. Execute the plan.
-PROMPT
-)" > "$OUTPUT_FILE" 2>&1 || {
+EOF
+
+# Note: We use a longer timeout since this is integration testing
+PROMPT=$(cat "$TEST_PROJECT/prompt.txt")
+timeout 1800 claude -p "$PROMPT" > "$OUTPUT_FILE" 2>&1 || {
echo "EXECUTION FAILED"
cat "$OUTPUT_FILE"
exit 1