aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_functions
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/tests/test_functions
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/tests/test_functions')
-rw-r--r--bootstrap/vagrant-onap/tests/test_functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_functions b/bootstrap/vagrant-onap/tests/test_functions
index 8043ebbd7..3ab5828cb 100644
--- a/bootstrap/vagrant-onap/tests/test_functions
+++ b/bootstrap/vagrant-onap/tests/test_functions
@@ -178,7 +178,7 @@ function test_coverity_repos {
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
+ sed -i '/^'${covered_repo//\//\\/}'$/d' remaining_projects.txt
done
threshold=75