Merge "Don't test idempotency on scenario001/centos"

This commit is contained in:
Zuul 2018-01-04 20:29:26 +00:00 committed by Gerrit Code Review
commit 21630bfb0f

View File

@ -224,20 +224,24 @@ if [ $RESULT -ne 0 ] && [ $RESULT -ne 2 ]; then
fi fi
timestamp_puppet_log timestamp_puppet_log
# Run puppet a second time and assert nothing changes. # scenario001 on centos is not idempotent anymore
set +e # https://bugs.launchpad.net/puppet-gnocchi/+bug/1741144
print_header "Running Puppet Scenario: ${SCENARIO} (2nd time)" if uses_debs || [ $SCENARIO != 'scenario001' ]; then
run_puppet $SCENARIO # Run puppet a second time and assert nothing changes.
RESULT=$? set +e
set -e print_header "Running Puppet Scenario: ${SCENARIO} (2nd time)"
if [ $RESULT -ne 0 ]; then run_puppet $SCENARIO
print_header 'Second Puppet run is not idempotent.' RESULT=$?
catch_puppet_failures set -e
print_header 'SELinux Alerts (2nd time)' if [ $RESULT -ne 0 ]; then
catch_selinux_alerts print_header 'Second Puppet run is not idempotent.'
exit 1 catch_puppet_failures
print_header 'SELinux Alerts (2nd time)'
catch_selinux_alerts
exit 1
fi
timestamp_puppet_log
fi fi
timestamp_puppet_log
print_header 'Prepare Tempest' print_header 'Prepare Tempest'