This commit is contained in:
@@ -36,7 +36,11 @@
|
||||
ruff
|
||||
];
|
||||
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
|
||||
|
||||
@@ -6,6 +6,13 @@ set -euo pipefail
|
||||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
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
|
||||
for arg in "$@"; do
|
||||
if [ "$arg" = "--fix" ]; then
|
||||
|
||||
Reference in New Issue
Block a user