aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-31 12:25:40 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-31 13:10:56 +0200
commitb66827d753e09c29cd6f541119dc0ec4c6344511 (patch)
tree0413fed63b0ce63808d435067a085262a7a6326a /functest/tests
parent1b75bbbc4e842ca2c8c14957261c88692f9e4828 (diff)
Print stderr in logs when calling cmd over ssh
Change-Id: I152ac898661a0e99a6232df86689c70c468ceaa5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests')
-rw-r--r--functest/tests/unit/openstack/vping/test_vping_ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/tests/unit/openstack/vping/test_vping_ssh.py b/functest/tests/unit/openstack/vping/test_vping_ssh.py
index 3595638ec..05482ed6b 100644
--- a/functest/tests/unit/openstack/vping/test_vping_ssh.py
+++ b/functest/tests/unit/openstack/vping/test_vping_ssh.py
@@ -75,7 +75,7 @@ class VpingSSHTesting(unittest.TestCase):
self.vping.ssh = mock.Mock()
stdout = mock.Mock()
stdout.channel.recv_exit_status.return_value = ret
- self.vping.ssh.exec_command.return_value = (None, stdout, None)
+ self.vping.ssh.exec_command.return_value = (None, stdout, mock.Mock())
self.assertEqual(self.vping.execute(), ret)
self.vping.ssh.exec_command.assert_called_once_with(
'ping -c 1 {}'.format(self.vping.vm2.private_v4))