From db392bb75af06f104cfea34ed676251537db000b Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 1 Jun 2019 10:52:05 +0200 Subject: Decode tempest exception output (py3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://build.opnfv.org/ci/job/functest-opnfv-functest-smoke-latest-refstack_compute-run/30/console Change-Id: I77264525917af5f67cdecae85ef7a50439499db8 Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/vmtp/vmtp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functest/opnfv_tests/openstack/vmtp') diff --git a/functest/opnfv_tests/openstack/vmtp/vmtp.py b/functest/opnfv_tests/openstack/vmtp/vmtp.py index 57bc6c3ea..2fd4e089c 100644 --- a/functest/opnfv_tests/openstack/vmtp/vmtp.py +++ b/functest/opnfv_tests/openstack/vmtp/vmtp.py @@ -180,7 +180,8 @@ class Vmtp(singlevm.VmReady2): status = testcase.TestCase.EX_OK except subprocess.CalledProcessError as cpe: self.__logger.error( - "Exception when calling %s\n%s", cpe.cmd, cpe.output) + "Exception when calling %s\n%s", cpe.cmd, + cpe.output.decode("utf-8")) self.result = 0 except Exception: # pylint: disable=broad-except self.__logger.exception("Cannot run vmtp") -- cgit 1.2.3-korg