Skip to content

Commit 3d2c8cb

Browse files
ohmayrchalmerlowe
authored andcommitted
1 parent 92c630c commit 3d2c8cb

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.kokoro/system.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,15 @@ run_package_test() {
6060

6161
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/google-auth-project-id.json")
6262
GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/google-auth-service-account.json"
63-
NOX_FILE="system_tests/noxfile.py"
64-
NOX_SESSION=""
63+
# Note: system.sh is also reused for monorepo-wide continuous unit test jobs
64+
# like `core_deps_from_source` and `prerelease_deps`. For google-auth, we only
65+
# want to override NOX_FILE to system_tests/noxfile.py when running actual system tests.
66+
if [[ -z "${NOX_SESSION}" || "${NOX_SESSION}" == "system-"* ]]; then
67+
NOX_FILE="system_tests/noxfile.py"
68+
NOX_SESSION=""
69+
else
70+
NOX_FILE="noxfile.py"
71+
fi
6572
;;
6673
*)
6774
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")

0 commit comments

Comments
 (0)