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:
1 changed files with 5 additions and 0 deletions
@@ -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
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.