aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2020-03-26 13:56:17 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2020-03-27 12:24:05 +0100
commitd14ad5d11324140b26aec98426d069a3c5abf32e (patch)
tree91f9f1f306cea29a3efc5acc65fc38a2fdbcbe79 /functest/opnfv_tests
parent40e7f94f247bfe9d499470b4c859b42a3054665a (diff)
Check the login prompt in console in SingleVm1
It also checks the second vm2 console log in case of vping_ssh. Change-Id: I13a5edfb3e19449a38d2f0478d549bd8fcc5cfa7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit c4206f485163d0fd75acf98683aea1268aa1205d)
Diffstat (limited to 'functest/opnfv_tests')
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_ssh.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py
index 6420013a0..e6c07ee91 100644
--- a/functest/opnfv_tests/openstack/vping/vping_ssh.py
+++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py
@@ -44,6 +44,8 @@ class VPingSSH(singlevm.SingleVm2):
Returns: ping exit codes
"""
assert self.ssh
+ if not self.check_regex_in_console(self.vm2.name):
+ return 1
(_, stdout, stderr) = self.ssh.exec_command(
'ping -c 1 {}'.format(
self.vm2.private_v4 or self.vm2.addresses[