diff --git a/tests/common.bash b/tests/common.bash index ad469dc6fe..4c33ba4d1c 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -488,11 +488,11 @@ function check_containerd_config_for_kata() { } function ensure_yq() { - : "${GOPATH:=${GITHUB_WORKSPACE:-$HOME/go}}" - export GOPATH - export PATH="${GOPATH}/bin:${PATH}" - INSTALL_IN_GOPATH=true "${repo_root_dir}/ci/install_yq.sh" - hash -d yq 2> /dev/null || true # yq is preinstalled on GHA Ubuntu 22.04 runners so we clear Bash's PATH cache. + : "${GOPATH:=${GITHUB_WORKSPACE:-$HOME/go}}" + export GOPATH + export PATH="${GOPATH}/bin:${PATH}" + INSTALL_IN_GOPATH=true "${repo_root_dir}/ci/install_yq.sh" + hash -d yq 2> /dev/null || true # yq is preinstalled on GHA Ubuntu 22.04 runners so we clear Bash's PATH cache. } # dependency: What we want to get the version from the versions.yaml file