From 61aa78b45d9fb958afa7fd15f77ef33785c30518 Mon Sep 17 00:00:00 2001 From: Denis DelGrosso Date: Thu, 26 Sep 2024 13:07:07 +0000 Subject: [PATCH] include common bazel args --- ci/cloudbuild/builds/lib/universe_domain.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/cloudbuild/builds/lib/universe_domain.sh b/ci/cloudbuild/builds/lib/universe_domain.sh index e6a03281b030b..dd57155d03c71 100644 --- a/ci/cloudbuild/builds/lib/universe_domain.sh +++ b/ci/cloudbuild/builds/lib/universe_domain.sh @@ -20,6 +20,8 @@ if ((CI_CLOUDBUILD_BUILDS_LIB_UNIVERSE_DOMAIN_SH__++ != 0)); then return 0 fi # include guard +source module ci/cloudbuild/builds/lib/bazel.sh + # Only create the SA key file if the secret is available. if [[ -n "${UD_SERVICE_ACCOUNT}" ]]; then ORIG_UMASK=$(umask) @@ -35,8 +37,9 @@ function ud::bazel_run() { } function ud::bazel_test() { + mapfile -t args < <(bazel::common_args) io::log "Executing bazel test $1 with obscured arguments:" - bazel test --test_env=UD_SA_KEY_FILE="${UD_SA_KEY_FILE}" \ + bazel test "${args[@]}" --test_env=UD_SA_KEY_FILE="${UD_SA_KEY_FILE}" \ --test_env=UD_REGION="${UD_REGION}" \ --test_env=UD_PROJECT="${UD_PROJECT}" -- "$@" }