aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/vfc
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-10-27 11:08:04 -0700
committerVictor Morales <victor.morales@intel.com>2017-10-27 11:08:04 -0700
commitf6c0bf15311b7079eb385e5cfb82be915724ab17 (patch)
tree2b1a21d4a597a3d1ef50ac0f5dbc3435414b3abd /bootstrap/vagrant-onap/lib/vfc
parentb4d986864b253491e9224dbaa45ab5f6e66743a5 (diff)
Fix regex for coverage projects function
The regular expresion that determines which repository is covered by the Unit test was wrong. This change modifies this regex to remove exact matches. Change-Id: Iffbd241c9463e57953b607d1f389d3be073d6b25 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-289
Diffstat (limited to 'bootstrap/vagrant-onap/lib/vfc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/vfc15
1 files changed, 7 insertions, 8 deletions
diff --git a/bootstrap/vagrant-onap/lib/vfc b/bootstrap/vagrant-onap/lib/vfc
index 5cf0ed13b..fc26af282 100755
--- a/bootstrap/vagrant-onap/lib/vfc
+++ b/bootstrap/vagrant-onap/lib/vfc
@@ -5,17 +5,16 @@ set -o xtrace
source /var/onap/functions
vfc_src_folder=$git_src_folder/vfc
-vfc_repos=("gvnfm" "gvnfm/vnflcm" "gvnfm/vnfmgr" "gvnfm/vnfres" "nfvo" \
-"nfvo/catalog" "nfvo/driver" "nfvo/driver/ems" "nfvo/driver/sfc" \
-"nfvo/driver/vnfm" "nfvo/driver/vnfm/gvnfm" "nfvo/driver/vnfm/svnfm" \
-"nfvo/lcm" "nfvo/resmanagement" "nfvo/wfengine")
+vfc_repos=("vfc/gvnfm" "vfc/gvnfm/vnflcm" "vfc/gvnfm/vnfmgr" \
+"vfc/gvnfm/vnfres" "vfc/nfvo" "vfc/nfvo/catalog" "vfc/nfvo/driver" \
+"vfc/nfvo/driver/ems" "vfc/nfvo/driver/sfc" "vfc/nfvo/driver/vnfm" \
+"vfc/nfvo/driver/vnfm/gvnfm" "vfc/nfvo/driver/vnfm/svnfm" "vfc/nfvo/lcm" \
+"vfc/nfvo/resmanagement" "vfc/nfvo/wfengine")
# clone_all_vfc_repos() - Function that clones VF-C source repo.
function clone_all_vfc_repos {
- clone_repo vfc $vfc_src_folder
-
- for dirc in ${vfc_repos[@]}; do
- clone_repo vfc/$dirc $vfc_src_folder/$dirc
+ for repo in ${vfc_repos[@]}; do
+ clone_repo $repo $vfc_src_folder${repo#*vfc}
done
}