summaryrefslogtreecommitdiff
path: root/tests/claude-code/test-subagent-driven-development-integration.sh
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-06-01 14:02:13 -0700
committerDrew Ritter <drew@primeradiant.com>2026-06-02 15:35:26 -0700
commitcb6bdf9dd3bc2bc67069529e57c620d769667e42 (patch)
treeb3b4c39d9f6e601b3ac9b1d2c0619c4405930f0b /tests/claude-code/test-subagent-driven-development-integration.sh
parentd7c260a97838a90bd39930ec42080c19b39cb4ad (diff)
Fix shell lint baseline warningscodex/shell-lint-baseline-fixes
Diffstat (limited to 'tests/claude-code/test-subagent-driven-development-integration.sh')
-rwxr-xr-xtests/claude-code/test-subagent-driven-development-integration.sh18
1 files changed, 14 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 a783648..d226b66 100755
--- a/tests/claude-code/test-subagent-driven-development-integration.sh
+++ b/tests/claude-code/test-subagent-driven-development-integration.sh
@@ -37,7 +37,10 @@ TEST_PROJECT=$(create_test_project)
echo "Test project: $TEST_PROJECT"
# Trap to cleanup
-trap "cleanup_test_project $TEST_PROJECT" EXIT
+cleanup_integration_test_project() {
+ cleanup_test_project "$TEST_PROJECT"
+}
+trap cleanup_integration_test_project EXIT
# Set up minimal Node.js project
cd "$TEST_PROJECT"
@@ -164,12 +167,19 @@ PLUGIN_DIR=$(cd "$SCRIPT_DIR/../.." && pwd)
# other concurrent claude sessions.
echo "Running Claude (plugin-dir: $PLUGIN_DIR, cwd: $TEST_PROJECT)..."
echo "================================================================================"
-cd "$TEST_PROJECT" && timeout 1800 claude -p "$PROMPT" --plugin-dir "$PLUGIN_DIR" --allowed-tools=all --permission-mode bypassPermissions 2>&1 | tee "$OUTPUT_FILE" || {
+set +e
+(
+ cd "$TEST_PROJECT" &&
+ timeout 1800 claude -p "$PROMPT" --plugin-dir "$PLUGIN_DIR" --allowed-tools=all --permission-mode bypassPermissions
+) 2>&1 | tee "$OUTPUT_FILE"
+execution_status=$?
+set -e
+if [[ "$execution_status" -ne 0 ]]; then
echo ""
echo "================================================================================"
- echo "EXECUTION FAILED (exit code: $?)"
+ echo "EXECUTION FAILED (exit code: $execution_status)"
exit 1
-}
+fi
echo "================================================================================"
echo ""