From 3cd319fcc2acff3d24f5020ddece506d80af7dab Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Wed, 28 Feb 2024 19:32:51 +0000 Subject: [PATCH] scripts: General fixes to the gha-run script This PR implements general fixes to the gha-run script for the cri-containerd tests. Signed-off-by: Gabriela Cervantes --- tests/integration/cri-containerd/gha-run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/cri-containerd/gha-run.sh b/tests/integration/cri-containerd/gha-run.sh index 2cb1a97e05..cdc5250a25 100755 --- a/tests/integration/cri-containerd/gha-run.sh +++ b/tests/integration/cri-containerd/gha-run.sh @@ -10,7 +10,7 @@ set -o nounset set -o pipefail kata_tarball_dir="${2:-kata-artifacts}" -cri_containerd_dir="$(dirname "$(readlink -f "$0")")" +cri_containerd_dir="$(dirname "$(readlink -f "$0")")" source "${cri_containerd_dir}/../../common.bash" function install_dependencies() { @@ -35,7 +35,7 @@ function install_dependencies() { sudo apt-get -y install "${system_deps[@]}" ensure_yq - ${repo_root_dir}/tests/install_go.sh -p -f + "${repo_root_dir}"/tests/install_go.sh -p -f # Dependency list of projects that we can install them # directly from their releases on GitHub: @@ -48,7 +48,7 @@ function install_dependencies() { for github_dep in "${github_deps[@]}"; do IFS=":" read -r -a dep <<< "${github_dep}" - install_${dep[0]} "${dep[1]}" + install_"${dep[0]}" "${dep[1]}" done # Clone containerd as we'll need to build it in order to run the tests @@ -64,7 +64,7 @@ function run() { if [[ "${KATA_HYPERVISOR}" = "cloud-hypervisor" ]]; then echo "Skipping cri-containerd tests for ${KATA_HYPERVISOR}" else - bash -c ${cri_containerd_dir}/integration-tests.sh + bash -c "${cri_containerd_dir}/integration-tests.sh" fi }