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
This commit is contained in:
Krzesimir Nowak 2022-08-30 11:27:10 +02:00
parent 9e05a07a77
commit 8cd06230ba

View File

@ -200,14 +200,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