From: Juha Kosonen Date: Tue, 12 Jun 2018 13:35:19 +0000 (+0300) Subject: Abort vping_userdata test if IP address is missing X-Git-Tag: opnfv-7.0.0~274^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=34ba453f1924f0d3ccd54d38db82fe008ab40442;p=functest.git Abort vping_userdata test if IP address is missing Do not start checking the result of ping test if the first instance has no IP address. JIRA: FUNCTEST-976 Change-Id: I2da3154e63a6a97f86efe8274be84abc437aa133 Signed-off-by: Juha Kosonen --- 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