Fix _do_execute() return code in vping_ssh 75/58075/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 30 May 2018 07:32:00 +0000 (09:32 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 30 May 2018 07:36:09 +0000 (09:36 +0200)
Change-Id: I781e51bb56f6cdac8b347e7fd85e70c07eb69e23
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 30e4106b56608595885e1b46ad4b668866ab9426)

functest/opnfv_tests/openstack/vping/vping_ssh.py

index dd864e0..1dfca89 100644 (file)
@@ -114,7 +114,7 @@ class VPingSSH(vping_base.VPingBase):
                 time.sleep(10)
         else:
             self.logger.error("cannot connect to %s", self.vm2.public_v4)
-            return False
+            return testcase.TestCase.EX_RUN_ERROR
 
         self.logger.debug("ssh: %s", self.ssh)
         (_, stdout, _) = self.ssh.exec_command(