Skip to content

Commit cbafca8

Browse files
committed
test: enables system.sh script to accept NOX_SESSIONS from configs like prerelease.cfg
1 parent 1b30c5f commit cbafca8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.kokoro/system.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ run_package_test() {
4343
local PROJECT_ID
4444
local GOOGLE_APPLICATION_CREDENTIALS
4545
local NOX_FILE
46-
local NOX_SESSION
46+
# Inherit NOX_SESSION from environment to allow configs (like prerelease.cfg) to pass it in
47+
local NOX_SESSION="${NOX_SESSION}"
4748

4849
echo "------------------------------------------------------------"
4950
echo "Configuring environment for: ${package_name}"
@@ -66,7 +67,8 @@ run_package_test() {
6667
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
6768
GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_GFILE_DIR}/service-account.json"
6869
NOX_FILE="noxfile.py"
69-
NOX_SESSION="system-3.12"
70+
# Use inherited NOX_SESSION if set, otherwise fallback to system-3.12
71+
NOX_SESSION="${NOX_SESSION:-system-3.12}"
7072
;;
7173
esac
7274

0 commit comments

Comments
 (0)