diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-03-26 13:56:17 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2020-03-27 10:41:08 +0100 |
commit | c4206f485163d0fd75acf98683aea1268aa1205d (patch) | |
tree | 5689f9d36d1860b29bfd18f5144f3572f73418b0 /functest/opnfv_tests/openstack/vping | |
parent | fa573a5c0aae16aecb4bc521b34b71af4a263a6f (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>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping')
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_ssh.py | 2 |
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[ |