aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/_test_base
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
commitf1f1ba5dac1b531c346758072c798ceb511100b3 (patch)
treea571f9e83be31abd3c63595c04a46dcd7e901a7d /bootstrap/vagrant-onap/tests/_test_base
parent25bfc6b99f73bd02047dcc13e64390140777402a (diff)
Refactor clone and compile functions
The clone_all_* and compile_all_* functions share same instructions for performing their functionality. This change pretends to reduce the duplication of the code. Change-Id: Ief63a5a58c79af85c829602b0451637424659438 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-339
Diffstat (limited to 'bootstrap/vagrant-onap/tests/_test_base')
-rwxr-xr-x[-rw-r--r--]bootstrap/vagrant-onap/tests/_test_base6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/vagrant-onap/tests/_test_base b/bootstrap/vagrant-onap/tests/_test_base
index 78c7f8bb4..b30632d26 100644..100755
--- a/bootstrap/vagrant-onap/tests/_test_base
+++ b/bootstrap/vagrant-onap/tests/_test_base
@@ -1,5 +1,9 @@
#!/bin/bash
+if [[ "$debug" == "True" ]]; then
+ set -o xtrace
+fi
+
source /var/onap_tests/asserts
source /var/onap/commons
@@ -17,7 +21,7 @@ function main {
echo "ok $((i+1)) - test_${covered_functions[$i]}"
# Teardown process
- if ! is_package_installed docker-ce; then
+ if is_package_installed docker-ce; then
docker images -q | xargs docker rmi -f
fi
dpkg --get-selections > installed-software_new