summaryrefslogtreecommitdiffstats
path: root/vagrant/tests/_functions.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2019-03-08 22:42:46 +0000
committerGerrit Code Review <gerrit@onap.org>2019-03-08 22:42:46 +0000
commit49a48a37a76201839c9507a970d639a318ba9d3f (patch)
tree26aadf9ec02cdf716a68d4b3c584b6afd9e3ede6 /vagrant/tests/_functions.sh
parentd8763f3be65a55a10618385dd2aeea525a87707e (diff)
parent1aa628c9494e0bdef7cdf3fd374520f91d86adb7 (diff)
Merge "Add test helm chart for testing"
Diffstat (limited to 'vagrant/tests/_functions.sh')
-rwxr-xr-xvagrant/tests/_functions.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/vagrant/tests/_functions.sh b/vagrant/tests/_functions.sh
index fe69b07b..62feb7b7 100755
--- a/vagrant/tests/_functions.sh
+++ b/vagrant/tests/_functions.sh
@@ -12,6 +12,14 @@ set -o errexit
set -o nounset
set -o pipefail
+function print_msg {
+ local msg=$1
+ local RED='\033[0;31m'
+ local NC='\033[0m'
+
+ echo -e "${RED} $msg ---------------------------------------${NC}"
+}
+
function _get_ovn_central_address {
ansible_ifconfig=$(ansible ovn-central[0] -i $test_folder/../inventory/hosts.ini -m shell -a "ifconfig eth1 |grep \"inet addr\" |awk '{print \$2}' |awk -F: '{print \$2}'")
if [[ $ansible_ifconfig != *CHANGED* ]]; then