diff options
author | ambrosin <ambrosin@google.com> | 2022-12-22 02:03:40 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-22 02:05:21 -0800 |
commit | 6e36a869797f84e241ecfa0947f716abe576d8ca (patch) | |
tree | 4baf8c10ab7409f3767815d366256cb9d5f5ab48 /kokoro | |
parent | fa125acc2788acc66b1cf16a20b26ea80827db8a (diff) | |
download | tink-6e36a869797f84e241ecfa0947f716abe576d8ca.tar.gz |
Use the correct Bazel version when installing Tink using pip in comprehensive test
PiperOrigin-RevId: 497112569
Diffstat (limited to 'kokoro')
-rwxr-xr-x | kokoro/run_tests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh index ce4d000a0..19623596f 100755 --- a/kokoro/run_tests.sh +++ b/kokoro/run_tests.sh @@ -156,6 +156,10 @@ run_macos_tests() { } install_tink_via_pip() { + if [[ -n "${KOKORO_ROOT}" ]]; then + use_bazel.sh "$(cat python/.bazelversion)" + fi + local -a PIP_FLAGS if [[ "${PLATFORM}" == 'darwin' ]]; then PIP_FLAGS=( --user ) @@ -213,6 +217,9 @@ install_temp_protoc() { # None ####################################### test_maven_packages() { + if [[ -n "${KOKORO_ROOT}" ]]; then + use_bazel.sh "$(cat java_src/.bazelversion)" + fi # Only test in the Ubuntu environment. if [[ "${PLATFORM}" != "linux" ]]; then return |