From 695fda401ee846ae75a790e79bf0f4ba725dbecd Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 23 Aug 2023 12:04:12 +0200 Subject: [PATCH] CI: Log details about failed containers Change-Id: I5df9cf14f16a7c08cccf053302bbda227526a4a8 --- tests/check-failure.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/check-failure.sh b/tests/check-failure.sh index ad88b29de0..87db6f177f 100755 --- a/tests/check-failure.sh +++ b/tests/check-failure.sh @@ -13,6 +13,11 @@ check_podman_failures() { --filter status=paused \ --filter status=exited \ --filter status=unknown) + + for container in $failed_containers; do + podman inspect $container + podman logs $container + done } @@ -34,6 +39,11 @@ check_docker_failures() { --filter status=paused \ --filter status=exited \ --filter status=dead) + + for container in $failed_containers; do + docker inspect $container + docker logs $container + done }