diff options
author | Victor Morales <victor.morales@intel.com> | 2017-11-06 11:51:37 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-11-06 12:00:15 -0800 |
commit | 332d7d80bd470bb78ed154a5b5416554686a7196 (patch) | |
tree | f2685d52e336f3c8f00b0395caf2ad7de9cb7e2e /bootstrap/vagrant-onap/tests/_test_base | |
parent | 7fbcfe9aa0c049c05aa9cd8bbf6c62796a1f109f (diff) |
Reduce the number of update_repo calls
The update_repo function allows to fetch repository metadata. This
function can take some time during the initial provisioning time.
This change reduce the number of calls to that function.
Change-Id: I2a0b0f13f7a3e6b37f0c0316ae9730a3ed840238
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-324
Diffstat (limited to 'bootstrap/vagrant-onap/tests/_test_base')
-rw-r--r-- | bootstrap/vagrant-onap/tests/_test_base | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tests/_test_base b/bootstrap/vagrant-onap/tests/_test_base index 7d0415a44..78c7f8bb4 100644 --- a/bootstrap/vagrant-onap/tests/_test_base +++ b/bootstrap/vagrant-onap/tests/_test_base @@ -1,11 +1,13 @@ #!/bin/bash source /var/onap_tests/asserts +source /var/onap/commons # main() - Starting point for Unit Tests function main { local covered_functions=("$@") + update_repos len=${#covered_functions[@]} echo "1..$len" for i in ${!covered_functions[@]}; do |