mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
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:
parent
5a498948c8
commit
3cd319fcc2
@ -10,7 +10,7 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
kata_tarball_dir="${2:-kata-artifacts}"
|
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"
|
source "${cri_containerd_dir}/../../common.bash"
|
||||||
|
|
||||||
function install_dependencies() {
|
function install_dependencies() {
|
||||||
@ -35,7 +35,7 @@ function install_dependencies() {
|
|||||||
sudo apt-get -y install "${system_deps[@]}"
|
sudo apt-get -y install "${system_deps[@]}"
|
||||||
|
|
||||||
ensure_yq
|
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
|
# Dependency list of projects that we can install them
|
||||||
# directly from their releases on GitHub:
|
# directly from their releases on GitHub:
|
||||||
@ -48,7 +48,7 @@ function install_dependencies() {
|
|||||||
|
|
||||||
for github_dep in "${github_deps[@]}"; do
|
for github_dep in "${github_deps[@]}"; do
|
||||||
IFS=":" read -r -a dep <<< "${github_dep}"
|
IFS=":" read -r -a dep <<< "${github_dep}"
|
||||||
install_${dep[0]} "${dep[1]}"
|
install_"${dep[0]}" "${dep[1]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Clone containerd as we'll need to build it in order to run the tests
|
# 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
|
if [[ "${KATA_HYPERVISOR}" = "cloud-hypervisor" ]]; then
|
||||||
echo "Skipping cri-containerd tests for ${KATA_HYPERVISOR}"
|
echo "Skipping cri-containerd tests for ${KATA_HYPERVISOR}"
|
||||||
else
|
else
|
||||||
bash -c ${cri_containerd_dir}/integration-tests.sh
|
bash -c "${cri_containerd_dir}/integration-tests.sh"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user