test temp dir
Some checks failed
MCP Tests / mcp-tests (push) Failing after 6s

This commit is contained in:
Danilo Reyes
2026-02-08 14:59:03 -06:00
parent 81318b3fb1
commit 4fb24672bf
2 changed files with 12 additions and 1 deletions

View File

@@ -36,7 +36,11 @@
ruff ruff
]; ];
text = '' text = ''
exec bash ${inputs.self}/scripts/mcp-server/run-tests.sh "$@" if [ ! -x ./scripts/mcp-server/run-tests.sh ]; then
echo "Expected ./scripts/mcp-server/run-tests.sh to be executable from repo root." >&2
exit 1
fi
exec bash ./scripts/mcp-server/run-tests.sh "$@"
''; '';
}; };
in in

View File

@@ -6,6 +6,13 @@ set -euo pipefail
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$here" cd "$here"
cache_root="${TMPDIR:-/tmp}/mcp-tests-cache"
mkdir -p "$cache_root"
export XDG_CACHE_HOME="$cache_root/xdg"
export RUFF_CACHE_DIR="$cache_root/ruff"
export MYPY_CACHE_DIR="$cache_root/mypy"
export PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} -o cache_dir=$cache_root/pytest"
fix=false fix=false
for arg in "$@"; do for arg in "$@"; do
if [ "$arg" = "--fix" ]; then if [ "$arg" = "--fix" ]; then