aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/mso
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-10-20 13:18:26 -0700
committerVictor Morales <victor.morales@intel.com>2017-10-20 13:30:38 -0700
commit21404d790afd758160f0562859bf186821d55c70 (patch)
tree35d12acbc325c30d6a6b168e20e9fb96b5aafe87 /bootstrap/vagrant-onap/lib/mso
parent9f8434f582bbc87d0299d4b4d94c93e20b400a94 (diff)
Create a upstream repos validator
This Unit Test helps to validate the usage of the official repositrories and fails in case that a minimum are not used. Change-Id: Id5a922163a8a0d16de5460aee92e5cced3f285a3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-289
Diffstat (limited to 'bootstrap/vagrant-onap/lib/mso')
-rwxr-xr-xbootstrap/vagrant-onap/lib/mso15
1 files changed, 6 insertions, 9 deletions
diff --git a/bootstrap/vagrant-onap/lib/mso b/bootstrap/vagrant-onap/lib/mso
index 6ff4bbe3e..5439d991b 100755
--- a/bootstrap/vagrant-onap/lib/mso
+++ b/bootstrap/vagrant-onap/lib/mso
@@ -5,23 +5,20 @@ set -o xtrace
source /var/onap/functions
src_folder=$git_src_folder/mso
-mso_repos=("chef-repo" "docker-config" "libs" "mso-config")
+mso_repos=("mso" "mso/chef-repo" "mso/docker-config" "mso/libs"
+"mso/mso-config")
# clone_all_mso_repos() - Function that clones MSO source repo.
function clone_all_mso_repos {
- clone_repo mso $src_folder
-
- for dirc in ${mso_repos[@]}; do
- clone_repo mso/$dirc $src_folder/$dirc
+ for repo in ${mso_repos[@]}; do
+ clone_repo $repo $src_folder${repo#*mso}
done
}
# compile_all_mso_repos() - Function that compiles MSO source repo.
function compile_all_mso_repos {
- compile_src $src_folder
-
- for dirc in ${mso_repos[@]}; do
- compile_src $src_folder/$dirc
+ for repo in ${mso_repos[@]}; do
+ compile_src $src_folder${repo#*mso}
done
}