diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-17 14:54:11 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-17 14:54:11 +0100 |
commit | f9d9560131f765cb89d328d9934849757429e77c (patch) | |
tree | a74dc976b2466e6394fb12c9819dd6826fa3f601 /offline-installer-review.sh | |
parent | 0ce90bf6eeb023aecc7d666b53855c4e7d6ff299 (diff) |
Run env setup only once
prep_ubuntu_16_04_for_molecule routine was taken out of
run_molecule function so that it's not superfluously run
on each molecule invocation
Change-Id: I1e4d3f32fbec4fa1e96389d9d65740747bffcef6
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1853
Diffstat (limited to 'offline-installer-review.sh')
-rwxr-xr-x | offline-installer-review.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/offline-installer-review.sh b/offline-installer-review.sh index 69f438dd..f839308a 100755 --- a/offline-installer-review.sh +++ b/offline-installer-review.sh @@ -31,7 +31,6 @@ 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[@]} @@ -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`) |