File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ set -eo pipefail
3
3
4
4
# Constants
5
5
readonly GITHUB_REPOSITORY_NAME=" grpc-java"
6
+ readonly INSTALL_DRIVER_LIB_DOWNLOAD=" ${INSTALL_DRIVER_LIB_DOWNLOAD:- 1} "
7
+ readonly INSTALL_DRIVER_LIB_DOWNLOAD_URL=" https://raw.githubusercontent.com/grpc/grpc/master/tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh"
6
8
# GKE Cluster
7
9
readonly GKE_CLUSTER_NAME=" interop-test-psm-sec-testing-api"
8
10
readonly GKE_CLUSTER_ZONE=" us-west1-b"
@@ -147,8 +149,20 @@ run_test() {
147
149
main () {
148
150
local script_dir
149
151
script_dir=" $( dirname " $0 " ) "
150
- # shellcheck source=buildscripts/kokoro/xds-k8s-install-test-driver.sh
151
- source " ${script_dir} /xds-k8s-install-test-driver.sh"
152
+
153
+ local install_driver_lib_path
154
+ if [[ -n " ${INSTALL_DRIVER_LIB_DOWNLOAD} " && -n " ${INSTALL_DRIVER_LIB_DOWNLOAD_URL} " ]]; then
155
+ # Download shared install driver library.
156
+ echo " Downloading shared install driver common library: ${INSTALL_DRIVER_LIB_DOWNLOAD_URL} ."
157
+ install_driver_lib_path=" $( mktemp -d) /grpc_xds_k8s_install_test_driver.sh"
158
+ wget --https-only " ${INSTALL_DRIVER_LIB_DOWNLOAD_URL} " -O " $( mktemp -d) /grpc_xds_k8s_install_test_driver.sh"
159
+ else
160
+ # Use local driver library (use for development).
161
+ install_driver_lib_path=" ${script_dir} /grpc_xds_k8s_install_test_driver.sh"
162
+ echo " Using local shared install driver common library: ${install_driver_lib_path} "
163
+ fi
164
+
165
+ source " ${install_driver_lib_path} "
152
166
set -x
153
167
if [[ -n " ${KOKORO_ARTIFACTS_DIR} " ]]; then
154
168
kokoro_setup_test_driver " ${GITHUB_REPOSITORY_NAME} "
You can’t perform that action at this time.
0 commit comments