From f6c0bf15311b7079eb385e5cfb82be915724ab17 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Fri, 27 Oct 2017 11:08:04 -0700 Subject: 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 Issue-Id: INT-289 --- bootstrap/vagrant-onap/tests/test_functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bootstrap/vagrant-onap/tests/test_functions') 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 -- cgit 1.2.3-korg