aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-06-13 17:25:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-06-13 17:25:07 +0000
commit1ef7fd44523182a8b8ddcc97433fff55ba17fce8 (patch)
tree42ae52896b3217fbd18d201df5bd7c743e613fee /functest/opnfv_tests
parentda3c805f8829f67d4d4154cd24f322ccf516b450 (diff)
parent34ba453f1924f0d3ccd54d38db82fe008ab40442 (diff)
Merge "Abort vping_userdata test if IP address is missing"
Diffstat (limited to 'functest/opnfv_tests')
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_userdata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_userdata.py b/functest/opnfv_tests/openstack/vping/vping_userdata.py
index 056598d71..4f9f635c3 100644
--- a/functest/opnfv_tests/openstack/vping/vping_userdata.py
+++ b/functest/opnfv_tests/openstack/vping/vping_userdata.py
@@ -64,6 +64,10 @@ class VPingUserdata(vping_base.VPingBase):
"""
Override from super
"""
+ if not self.vm1.private_v4:
+ self.logger.error("vm1: IP addr missing")
+ return testcase.TestCase.EX_TESTCASE_FAILED
+
self.logger.info("Waiting for ping...")
exit_code = testcase.TestCase.EX_TESTCASE_FAILED
sec = 0