summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_functions
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-12-08 11:57:42 -0800
committerVictor Morales <victor.morales@intel.com>2017-12-08 11:57:42 -0800
commit5464664702bc07c180ed82eb1a5d9bcc9e5d18ec (patch)
treec45bae722f80a3481965fec72385ad137c36ea6b /bootstrap/vagrant-onap/tests/test_functions
parent5d21f64981e69f6a266da1ec30754de5d8d71e26 (diff)
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
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_functions')
-rwxr-xr-xbootstrap/vagrant-onap/tests/test_functions14
1 files changed, 4 insertions, 10 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_functions b/bootstrap/vagrant-onap/tests/test_functions
index a6d225bc6..9411b46f4 100755
--- a/bootstrap/vagrant-onap/tests/test_functions
+++ b/bootstrap/vagrant-onap/tests/test_functions
@@ -158,18 +158,12 @@ function test_build_docker_image {
# 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