diff --git a/run_tests.sh b/run_tests.sh index 8bb5a8a8c..585e4ef9d 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -88,7 +88,12 @@ set +e if [ "${MANAGE_REPOS}" = true ]; then print_header 'Install repos' $SUDO $PUPPET_FULL_PATH apply $PUPPET_ARGS -e "include ::openstack_integration::repos" + if [ $? -ne 2 ]; then + print_header 'Puppet failed to install repositories.' + exit 1 + fi fi + print_header "Running Puppet Scenario: ${SCENARIO} (1st time)" run_puppet $SCENARIO RESULT=$?