From 007fe3c19ac3c5930fbd1519b6086890f183567a Mon Sep 17 00:00:00 2001 From: verlyn13 Date: Sun, 30 Aug 2026 12:41:08 -0800 Subject: [PATCH] test(mcp): isolate Codex fixtures from tool shims --- tests/mcp-codex/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/mcp-codex/run.sh b/tests/mcp-codex/run.sh index a88f80d..178eba2 100755 --- a/tests/mcp-codex/run.sh +++ b/tests/mcp-codex/run.sh @@ -16,6 +16,17 @@ set -uo pipefail REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" SYNC="$REPO_DIR/scripts/sync-mcp.sh" +# These fixtures replace HOME and, in one case, XDG_CONFIG_HOME. Tool-manager +# shims can use those variables for their own configuration, so prefer the +# first real jq executable already available later on PATH. The suite is +# testing MCP rendering, not the operator's tool-manager state. +while IFS= read -r jq_candidate; do + [[ "$jq_candidate" == */shims/* ]] && continue + PATH="$(dirname "$jq_candidate"):$PATH" + export PATH + break +done < <(type -a -p jq) + pass=0 fail=0 ok() { echo "ok - $1"; pass=$((pass + 1)); }