Skip to content

Commit 78e9da3

Browse files
committed
change to the base directory before invoking test runs (gemini-code-assist suggestion)
1 parent 708cd9f commit 78e9da3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/a2a/contrib/tasks/run_vertex_tests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ for var in VERTEX_PROJECT VERTEX_LOCATION VERTEX_BASE_URL VERTEX_API_VERSION; do
88
fi
99
done
1010

11-
# Get the directory of this script
12-
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
13-
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
1411
PYTEST_ARGS=("$@")
1512

13+
echo "Running Vertex tests..."
14+
15+
cd $(git rev-parse --show-toplevel)
16+
1617
uv run pytest -v "${PYTEST_ARGS[@]}" tests/contrib/tasks/test_vertex_task_store.py tests/contrib/tasks/test_vertex_task_converter.py

0 commit comments

Comments
 (0)