From b26275eae6f64672a36d9a68eb6c34ca637c0896 Mon Sep 17 00:00:00 2001 From: Emilien Macchi <emilien@redhat.com> Date: Thu, 21 Apr 2016 09:52:23 -0400 Subject: [PATCH] run_tests: add more debug when Puppet fails Add more debug when Puppet fails during first and second run. It will help people debugging CI to figure why job failed. Change-Id: I9ef32afaa594a65be6ed49f40bd8fba735fe2c70 --- run_tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run_tests.sh b/run_tests.sh index 8ac490d5c..73d2fb65b 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -151,6 +151,7 @@ run_puppet $SCENARIO RESULT=$? set -e if [ $RESULT -ne 2 ]; then + print_header 'First Puppet run contains errors in catalog.' print_header 'SELinux Alerts (1st time)' catch_selinux_alerts exit 1 @@ -163,6 +164,7 @@ run_puppet $SCENARIO RESULT=$? set -e if [ $RESULT -ne 0 ]; then + print_header 'Second Puppet run is not idempotent.' print_header 'SELinux Alerts (2nd time)' catch_selinux_alerts exit 1