mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
tests: adding debug and skip to kata-deploy
If a test is failing during setup, makes no much sense to run the suite. Let's skip and add some debug messages. Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
@@ -60,6 +60,11 @@ setup() {
|
||||
grep "${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}" "tools/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" || die "Failed to setup the tests image"
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Debug overlays directory content"
|
||||
echo "Current working directory: $(pwd)"
|
||||
ls -la tools/packaging/kata-deploy/kata-deploy/overlays/
|
||||
echo "::endgroup::"
|
||||
|
||||
kubectl apply -f "tools/packaging/kata-deploy/kata-rbac/base/kata-rbac.yaml"
|
||||
if [ "${KUBERNETES}" = "k0s" ]; then
|
||||
kubectl apply -k "tools/packaging/kata-deploy/kata-deploy/overlays/k0s"
|
||||
@@ -80,6 +85,7 @@ setup() {
|
||||
echo "Describing pod: $pod"
|
||||
kubectl -n kube-system describe pod "$pod"
|
||||
done
|
||||
|
||||
echo "ERROR: kata-deploy pod is not running, tests will not be execute."
|
||||
echo "ERROR: setup() aborting tests..."
|
||||
return 1
|
||||
|
Reference in New Issue
Block a user