Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .kokoro/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ run_package_test() {

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The assignment NOX_SESSION="${NOX_SESSION}" is redundant because it assigns the variable to itself. This can be safely removed.

Suggested change
else
NOX_FILE="noxfile.py"
NOX_SESSION="${NOX_SESSION}"
fi
else
NOX_FILE="noxfile.py"
fi

;;
*)
PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")
Expand Down
Loading