summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomáš Levora <t.levora@partner.samsung.com>2020-01-20 14:59:13 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-20 14:59:13 +0000
commit59ee11be51545ac5902c8c6789c1a3a44425ef73 (patch)
tree26567789a0b3902de2a70e43d0bc2512e8cee3a3
parenta3f7fe728cfa4f3b4e0a1f87b3232630a608365a (diff)
parentf9d9560131f765cb89d328d9934849757429e77c (diff)
Merge changes from topic "OOM-1853"
* changes: Run env setup only once Fix condition for checking if tests are defined
-rwxr-xr-xoffline-installer-review.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/offline-installer-review.sh b/offline-installer-review.sh
index 3e011ea2..f839308a 100755
--- a/offline-installer-review.sh
+++ b/offline-installer-review.sh
@@ -31,12 +31,11 @@ function prep_ubuntu_16_04_for_molecule() {
}
function run_molecule() {
- prep_ubuntu_16_04_for_molecule
local roles=("$@")
local MOLECULE_RC
for role in ${roles[@]}
do
- if `find ${role} -name molecule.yml | grep -q '.*'`; then
+ if [ -f ${role}/molecule/default/molecule.yml ]; then
./ansible/test/bin/ci-molecule.sh ${role}
MOLECULE_RC=$?
if [ ${MOLECULE_RC} -ne "0" ]; then FAILED_ROLES+=(${role}); fi
@@ -51,6 +50,8 @@ function run_molecule() {
#######################################################################$
FAILED_ROLES=()
ALL_PLAYBOOKS=(`ls -d ansible/test/play-*`) # enumerate all playbook tests for later usage
+# Setup environment
+prep_ubuntu_16_04_for_molecule
# Check for changes in Ansible roles
ROLE_CHANGES=(`git diff HEAD^ HEAD --name-only ansible/roles | cut -f 1-3 -d "/" | sort -u`)