Refactor clone and compile functions
The clone_all_* and compile_all_* functions share same instructions
for performing their functionality. This change pretends to reduce
the duplication of the code.
Change-Id: Ief63a5a58c79af85c829602b0451637424659438
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-339
diff --git a/bootstrap/vagrant-onap/tests/test_vfc b/bootstrap/vagrant-onap/tests/test_vfc
old mode 100644
new mode 100755
index 53d9c0d..a675c52
--- a/bootstrap/vagrant-onap/tests/test_vfc
+++ b/bootstrap/vagrant-onap/tests/test_vfc
@@ -9,7 +9,7 @@
# test_clone_all_vfc_repos() - Verify cloning and pulling source code from repositories
function test_clone_all_vfc_repos {
- clone_all_vfc_repos
+ clone_repos "vfc"
#asserts_file_exist $vfc_src_folder/pom.xml
#asserts_file_exist $vfc_src_folder/gvnfm
@@ -30,7 +30,7 @@
# test_compile_all_vfc_repos() - Verify that all the VFC modules are compiled properly
function test_compile_all_vfc_repos {
- clone_all_vfc_repos
+ clone_repos "vfc"
compile_all_vfc_repos
# TODO(electrocucaracha): Add asserts_file_exist
@@ -38,7 +38,7 @@
# test_get_vfc_images() - Verify all VFC images are built correctly.
function test_get_vfc_images {
- clone_all_vfc_repos
+ clone_repos "vfc"
get_vfc_images
asserts_image onap/gvnfmdriver
@@ -50,7 +50,7 @@
# test_install_vfc() - Verify that the VFC are up and running
function test_install_vfc {
- clone_all_vfc_repos
+ clone_repos "vfc"
get_vfc_images
install_vfc