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 <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2024-02-28 19:32:51 +00:00
parent 5a498948c8
commit 3cd319fcc2

View File

@ -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
}