Skip to content

Commit 5eab08e

Browse files
committed
ci(kokoro): fix NOX_FILE and NOX_SESSION override for google-auth in system.sh
1 parent 11de939 commit 5eab08e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.kokoro/system.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,13 @@ 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+
if [[ -z "${NOX_SESSION}" || "${NOX_SESSION}" == "system-"* ]]; then
64+
NOX_FILE="system_tests/noxfile.py"
65+
NOX_SESSION=""
66+
else
67+
NOX_FILE="noxfile.py"
68+
NOX_SESSION="${NOX_SESSION}"
69+
fi
6570
;;
6671
*)
6772
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")

0 commit comments

Comments
 (0)