301ae3faee
Rather than copy-pasting around same tasks but changing slightly the way we loop them when it's a per-profile or a per-cloud resource, refactor the code a bit so both mechanisms call the same task. e.g. the per-profile projects and per-cloud projects will call in the end create_project, the only thing it varies is the loop prior to getting the individual project items. Change-Id: Ida2aebadafd4d60d11fa18aa2208dad235badd4c
24 lines
784 B
Bash
Executable File
24 lines
784 B
Bash
Executable File
#!/bin/sh
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
echo "Running ansible-role-cloud-launcher functional test suite"
|
|
set +e
|
|
sudo -E -H -u jenkins tox -efunctional
|
|
EXIT_CODE=$?
|
|
sudo testr last --subunit > $WORKSPACE/tempest.subunit
|
|
set -e
|
|
|
|
exit $EXIT_CODE
|