aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack/vping
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/opnfv_tests/openstack/vping
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/opnfv_tests/openstack/vping')
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_ssh.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_ssh.py b/functest/opnfv_tests/openstack/vping/vping_ssh.py
index 643f4f6de..a8a6fd9a6 100644
--- a/functest/opnfv_tests/openstack/vping/vping_ssh.py
+++ b/functest/opnfv_tests/openstack/vping/vping_ssh.py
@@ -44,9 +44,10 @@ class VPingSSH(singlevm.SingleVm2):
Returns: ping exit codes
"""
assert self.ssh
- (_, stdout, _) = self.ssh.exec_command(
+ (_, stdout, stderr) = self.ssh.exec_command(
'ping -c 1 ' + self.vm2.private_v4)
- self.__logger.debug("output:\n%s", stdout.read())
+ self.__logger.info("output:\n%s", stdout.read())
+ self.__logger.info("error:\n%s", stderr.read())
return stdout.channel.recv_exit_status()
def clean(self):