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:
parent
5210671dbb
commit
baa6859e5c
@ -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=$?
|
||||
|
Loading…
x
Reference in New Issue
Block a user