Centralize src_folder and repos info
The configuration values that determines where the source code will
be cloned and the list of repos associated to specific project have
been included in a new global configuration file, which pretends to
facilitate their changes.
Change-Id: I700bfe02e6b2f8bf8eef763e44b5e037357ec892
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-367
diff --git a/bootstrap/vagrant-onap/tests/test_functions b/bootstrap/vagrant-onap/tests/test_functions
index a6d225b..9411b46 100755
--- a/bootstrap/vagrant-onap/tests/test_functions
+++ b/bootstrap/vagrant-onap/tests/test_functions
@@ -158,18 +158,12 @@
# test_coverity_repos() - Verify that all the repos are covered by scripts
function test_coverity_repos {
- # Get repositories list from source code files
- repos_list=()
- for module in $( stat -c "%F %n" /var/onap/* | grep -v "_\|functions\|commons\|files" | cut -d' ' -f 3-); do
- source $module
- module_repo_list=$(eval echo \${$(basename $module)_repos[@]})
- repos_list=(${repos_list[@]} ${module_repo_list[@]})
- done
-
pushd /var/onap_tests/
cp projects.txt remaining_projects.txt
- for covered_repo in "${repos_list[@]}"; do
- sed -i '/^'${covered_repo//\//\\/}'$/d' remaining_projects.txt
+ for project in "${repos[@]}"; do
+ for covered_repo in $project; do
+ sed -i '/^'${covered_repo//\//\\/}'$/d' remaining_projects.txt
+ done
done
threshold=75