summaryrefslogtreecommitdiff
path: root/tests/claude-code
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2025-11-29 11:47:47 -0800
committerJesse Vincent <jesse@fsck.com>2025-12-17 16:44:50 -0800
commit67de772d7f8fc53e426e856571a22dba69d625a1 (patch)
tree54deb6ce5fb6f908ac6cca4b357bd16a5962b003 /tests/claude-code
parentcf728637924c664250ab1433b1373fcdf05f9df7 (diff)
test: auto-approve permissions with --permission-mode dontAsk
Headless tests need automatic permission approval to write files. Using dontAsk mode to auto-approve permissions for test directory.
Diffstat (limited to 'tests/claude-code')
-rwxr-xr-xtests/claude-code/test-subagent-driven-development-integration.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/claude-code/test-subagent-driven-development-integration.sh b/tests/claude-code/test-subagent-driven-development-integration.sh
index 95434a5..cf3c730 100755
--- a/tests/claude-code/test-subagent-driven-development-integration.sh
+++ b/tests/claude-code/test-subagent-driven-development-integration.sh
@@ -149,7 +149,7 @@ Begin now. Execute the plan."
echo "Running Claude (output will be shown below and saved to $OUTPUT_FILE)..."
echo "================================================================================"
-cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all --add-dir "$TEST_PROJECT" 2>&1 | tee "$OUTPUT_FILE" || {
+cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all --add-dir "$TEST_PROJECT" --permission-mode dontAsk 2>&1 | tee "$OUTPUT_FILE" || {
echo ""
echo "================================================================================"
echo "EXECUTION FAILED (exit code: $?)"