diff --git a/test/common.sh b/test/common.sh index cb824b598f..81f8cdc57b 100755 --- a/test/common.sh +++ b/test/common.sh @@ -58,8 +58,21 @@ function install_istio() { echo ">> Installing Istio" echo "Istio version: ${ISTIO_VERSION}" echo "Istio profile: ${ISTIO_PROFILE}" - ${NET_ISTIO_DIR}/third_party/istio-${ISTIO_VERSION}/install-istio.sh ${ISTIO_PROFILE} + # TODO: Hack to walkaround knative-extensions/net-istio#1345 + local net_istio_script library_path + net_istio_script="$(mktemp)" + library_path="$(go run knative.dev/hack/cmd/script library.sh)" + cat <"${net_istio_script}" +#!/bin/bash +set -Eeuo pipefail + +source "$library_path" +"${NET_ISTIO_DIR}/third_party/istio-${ISTIO_VERSION}/install-istio.sh" "${ISTIO_PROFILE}" +EOF + chmod +x "${net_istio_script}" + "${net_istio_script}" + rm -f "${net_istio_script}" } function knative_setup() {