Skip to content

Commit be11c1b

Browse files
committed
chore: updates creds check in run_doctest script
1 parent a3de36a commit be11c1b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/bigframes/scripts/run_doctest.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ if [[ "${package_modified}" -gt 0 || "$KOKORO_BUILD_ARTIFACTS_SUBDIR" == *"conti
3434
echo "Running doctest for: ${package_name}"
3535
echo "------------------------------------------------------------"
3636

37+
# Ensure credentials are set for system tests in Kokoro
38+
if [[ -z "${GOOGLE_APPLICATION_CREDENTIALS}" && -f "${KOKORO_GFILE_DIR}/service-account.json" ]]; then
39+
export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/service-account.json"
40+
fi
41+
3742
export GOOGLE_CLOUD_PROJECT="bigframes-testing"
3843
NOX_SESSION=("cleanup" "doctest")
3944

0 commit comments

Comments
 (0)