run_tests: fail if repos are not installed when asked

Stop the script if Puppet fails to deploy repositories.
It can happens in case of repo downstimes or timeouts.
Change-Id: I01326be2bc4ab8380ce2a371a6def38011a0523f
This commit is contained in:
Emilien Macchi
2016年06月09日 21:28:16 -04:00
parent 5210671dbb
commit baa6859e5c

View File

@@ -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=$?
Reference in New Issue
openstack/puppet-openstack-integration
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.