diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-31 12:25:40 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-31 13:10:56 +0200 |
commit | b66827d753e09c29cd6f541119dc0ec4c6344511 (patch) | |
tree | 0413fed63b0ce63808d435067a085262a7a6326a /functest/core | |
parent | 1b75bbbc4e842ca2c8c14957261c88692f9e4828 (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/core')
-rw-r--r-- | functest/core/singlevm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py index 2a8ae879a..46aa41902 100644 --- a/functest/core/singlevm.py +++ b/functest/core/singlevm.py @@ -381,8 +381,9 @@ class SingleVm1(VmReady1): Returns: echo exit codes """ - (_, stdout, _) = self.ssh.exec_command('echo Hello World') + (_, stdout, stderr) = self.ssh.exec_command('echo Hello World') self.__logger.debug("output:\n%s", stdout.read()) + self.__logger.debug("error:\n%s", stderr.read()) return stdout.channel.recv_exit_status() def run(self, **kwargs): |