From ae7b5a7e804d36980caaba9bdb00085d8bdb6982 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Sat, 30 Nov 2024 11:46:15 +0100 Subject: [PATCH] Show logs upon failure, to make debugging easier. --- tests/run-master-and-replica.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/run-master-and-replica.sh b/tests/run-master-and-replica.sh index 5d721f2f..5dd70620 100755 --- a/tests/run-master-and-replica.sh +++ b/tests/run-master-and-replica.sh @@ -62,6 +62,13 @@ function wait_for_ipa_container() { done date if [ "$EXIT_STATUS" -ne 0 ] ; then + if [ "$N" == "freeipa-replica" ] ; then + $sudo tail -100 $VOLUME/var/log/ipareplica-install.log + else + $sudo tail -100 $VOLUME/var/log/ipaserver-install.log + fi + echo '---' + $sudo tail -150 $VOLUME/var/log/ipaclient-install.log exit "$EXIT_STATUS" fi if ! $sudo grep '^2' $VOLUME/volume-version ; then