File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414docker :
1515 image : gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16- digest : sha256:8ff1efe878e18bd82a0fb7b70bb86f77e7ab6901fed394440b6135db0ba8d84a
17- # created: 2025-01-09T12:01:16.422459506Z
16+ digest : sha256:f016446d6e520e5fb552c45b110cba3f217bffdd3d06bdddd076e9e6d13266cf
17+ # created: 2025-02-21T19:32:52.01306189Z
Original file line number Diff line number Diff line change 1515
1616set -eo pipefail
1717
18+ CURRENT_DIR=$( dirname " ${BASH_SOURCE[0]} " )
19+
1820if [[ -z " ${PROJECT_ROOT:- } " ]]; then
19- PROJECT_ROOT=" github/google-api-python-client "
21+ PROJECT_ROOT=$( realpath " ${CURRENT_DIR} /.. " )
2022fi
2123
22- cd " ${PROJECT_ROOT} "
24+ pushd " ${PROJECT_ROOT} "
2325
2426# Disable buffering, so that the logs stream through.
2527export PYTHONUNBUFFERED=1
@@ -28,10 +30,16 @@ export PYTHONUNBUFFERED=1
2830env | grep KOKORO
2931
3032# Setup service account credentials.
31- export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
33+ if [[ -f " ${KOKORO_GFILE_DIR} /service-account.json" ]]
34+ then
35+ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
36+ fi
3237
3338# Setup project id.
34- export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
39+ if [[ -f " ${KOKORO_GFILE_DIR} /project-id.json" ]]
40+ then
41+ export PROJECT_ID=$( cat " ${KOKORO_GFILE_DIR} /project-id.json" )
42+ fi
3543
3644# If this is a continuous build, send the test log to the FlakyBot.
3745# See https://github.com/googleapis/repo-automation-bots/tree/main/packages/flakybot.
4654# If NOX_SESSION is set, it only runs the specified session,
4755# otherwise run all the sessions.
4856if [[ -n " ${NOX_SESSION:- } " ]]; then
49- python3 -m nox -s ${NOX_SESSION:- }
57+ python3 -m nox -s ${NOX_SESSION:- }
5058else
51- python3 -m nox
59+ python3 -m nox
5260fi
You can’t perform that action at this time.
0 commit comments