From 821235754cc5d2bc56c65b0691fc4137bc034bf0 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Tue, 30 Aug 2022 11:27:10 +0200 Subject: [PATCH] ci-automation: Print failed tests nicer Instead of printing failed tests like this: Failed tests: kubeadm.v1.25.0.cilium.base kubeadm.v1.24.1.cilium.base Do it like this: Failed tests: kubeadm.v1.25.0.cilium.base kubeadm.v1.24.1.cilium.base --- ci-automation/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci-automation/test.sh b/ci-automation/test.sh index 13425c5734..bbff2f3e2c 100644 --- a/ci-automation/test.sh +++ b/ci-automation/test.sh @@ -204,14 +204,16 @@ function _test_run_impl() { if retest_cycle_broken; then echo "########### Test cycle requested to break ###########" - echo "Failed tests: $failed_tests" + echo "Failed tests:" + echo "${failed_tests}" echo "-----------" print_give_up=false break fi echo "########### Some tests failed and will be re-run (${retry} / ${retries}). ###########" - echo "Failed tests: $failed_tests" + echo "Failed tests:" + echo "${failed_tests}" echo "-----------" set -- $failed_tests done