mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 21:56:32 +00:00
tests: k8s: Update bats
We've seen some issues with tests not being run in some of the Coco CI jobs (Issue #10451) and in the envrionments that are more stable we noticed that they had a newer version of bats installed. Try updating the version to 1.10+ and print out the version for debug purposes Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
06d2cc7239
commit
3f5bf9828b
@ -101,14 +101,11 @@ function create_cluster() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function install_bats() {
|
function install_bats() {
|
||||||
# Installing bats from the lunar repo.
|
# Installing bats from the noble repo.
|
||||||
# This installs newer version of the bats which supports setup_file and teardown_file functions.
|
|
||||||
# These functions are helpful when adding new tests that require one time setup.
|
|
||||||
|
|
||||||
sudo apt install -y software-properties-common
|
sudo apt install -y software-properties-common
|
||||||
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ lunar universe'
|
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu/ noble universe'
|
||||||
sudo apt install -y bats
|
sudo apt install -y bats
|
||||||
sudo add-apt-repository --remove 'deb http://archive.ubuntu.com/ubuntu/ lunar universe'
|
sudo add-apt-repository --remove 'deb http://archive.ubuntu.com/ubuntu/ noble universe'
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_kubectl() {
|
function install_kubectl() {
|
||||||
|
@ -129,6 +129,8 @@ fi
|
|||||||
|
|
||||||
ensure_yq
|
ensure_yq
|
||||||
|
|
||||||
|
info "Running tests with bats version: $(bats --version)"
|
||||||
|
|
||||||
tests_fail=()
|
tests_fail=()
|
||||||
for K8S_TEST_ENTRY in ${K8S_TEST_UNION[@]}
|
for K8S_TEST_ENTRY in ${K8S_TEST_UNION[@]}
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user