summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/functions
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-12-07 11:54:59 -0800
committerVictor Morales <victor.morales@intel.com>2017-12-07 12:04:22 -0800
commit5d21f64981e69f6a266da1ec30754de5d8d71e26 (patch)
tree2ac623262e3aabd9238df22af63149405b1d9fa1 /bootstrap/vagrant-onap/lib/functions
parent303a016e7c35d988add1838faad37f4d0432bc00 (diff)
Fix Robot UTs
The way to clone robot source code repos was depending on the name of the project, but given that robot repos name has different name it was required to handle this exception. This change include Change-Id: If0f4b1cd7866944166b1e81ed417176049251370 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-19
Diffstat (limited to 'bootstrap/vagrant-onap/lib/functions')
-rwxr-xr-xbootstrap/vagrant-onap/lib/functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions
index 907805e97..8d906dc68 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -70,13 +70,14 @@ function clone_repo {
# clone_repos() - Function that clones source repositories for a given project
function clone_repos {
local project=$1
+ local repo_name=${2:-$project}
local name=${project}_repos[@]
local src_name=${project}_src_folder
local repos_list=("${!name}")
- local dest_folder=${3:-${!src_name}}
+ local dest_folder=${!src_name}
for repo in ${repos_list[@]}; do
- clone_repo $repo $dest_folder${repo#*$project}
+ clone_repo $repo $dest_folder${repo#*$repo_name}
done
}