diff options
author | Juha Kosonen <juha.kosonen@nokia.com> | 2018-06-12 16:35:19 +0300 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-03 20:15:31 +0200 |
commit | 3dd499cdc1abdb838313e761b9d7ccf1ee0f039b (patch) | |
tree | 00a6904511ac8a622a0ce1464c3c0bb21d7a9361 | |
parent | 789986b6eefb4f36ffb87f514f58567050a61753 (diff) |
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 <juha.kosonen@nokia.com>
(cherry picked from commit 34ba453f1924f0d3ccd54d38db82fe008ab40442)
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_userdata.py | 4 |
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 0741bc079..c3de0b8b6 100644 --- a/functest/opnfv_tests/openstack/vping/vping_userdata.py +++ b/functest/opnfv_tests/openstack/vping/vping_userdata.py @@ -61,6 +61,10 @@ class VPingUserdata(singlevm.VmReady2): """ 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 |