This commit is contained in:
@@ -36,27 +36,7 @@
|
||||
ruff
|
||||
];
|
||||
text = ''
|
||||
start_dir="$PWD"
|
||||
if [ -n "''${MCP_TESTS_WORKDIR:-}" ]; then
|
||||
cd "''${MCP_TESTS_WORKDIR}"
|
||||
elif [ -n "''${GITEA_WORKSPACE:-}" ]; then
|
||||
cd "''${GITEA_WORKSPACE}"
|
||||
elif [ -n "''${GITHUB_WORKSPACE:-}" ]; then
|
||||
cd "''${GITHUB_WORKSPACE}"
|
||||
elif command -v git >/dev/null 2>&1; then
|
||||
repo_root="$(git rev-parse --show-toplevel 2>/dev/null || true)"
|
||||
if [ -n "$repo_root" ]; then
|
||||
cd "$repo_root"
|
||||
fi
|
||||
fi
|
||||
while [ ! -x ./scripts/mcp-server/run-tests.sh ]; do
|
||||
if [ "$PWD" = "/" ]; then
|
||||
echo "Could not find executable scripts/mcp-server/run-tests.sh starting from $start_dir" >&2
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
done
|
||||
exec bash ./scripts/mcp-server/run-tests.sh "$@"
|
||||
exec bash ${inputs.self}/scripts/mcp-server/run-tests.sh "$@"
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user