Skip to content

Commit 3fff561

Browse files
committed
Fix "--no-install-packs" in client integration test runner
1 parent 3271110 commit 3fff561

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

client/scripts/run-integration-tests.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,15 @@ run_tests_in_mode() {
127127
echo "📡 Using stdio transport (client spawns server directly)"
128128
fi
129129

130-
# Run the integration tests (skip pack installation since we already did it)
130+
# Run the integration tests.
131+
# Only forward --no-install-packs when the user explicitly requested it,
132+
# so the codeql_pack_install fixture is still exercised by default.
131133
echo "🧪 Running tests..."
132-
"$CLIENT_DIR/gh-ql-mcp-client" integration-tests --mode "$MCP_MODE" --no-install-packs "$@"
134+
local client_args=(integration-tests --mode "$MCP_MODE")
135+
if [ "$SKIP_PACK_INSTALL" = true ]; then
136+
client_args+=(--no-install-packs)
137+
fi
138+
"$CLIENT_DIR/gh-ql-mcp-client" "${client_args[@]}" "$@"
133139

134140
if [ "$MCP_MODE" = "http" ]; then
135141
# Stop the server before next mode

0 commit comments

Comments
 (0)