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
This commit is contained in:
Emilien Macchi 2016-04-21 09:52:23 -04:00
parent 100306b7d4
commit b26275eae6

@ -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