aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-06-01 10:52:05 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-06-01 11:14:18 +0200
commit1ef1967404e449d40b74064cfcb0297bc9e98c72 (patch)
tree173b53c66807e8875d8c7fb559d6ed0477dd15f3 /functest/opnfv_tests/openstack
parentf5078d6959b4725da6ba251909d5f3ffd5c149c1 (diff)
Decode tempest exception output (py3)
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 <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/openstack')
-rw-r--r--functest/opnfv_tests/openstack/refstack/refstack.py2
-rw-r--r--functest/opnfv_tests/openstack/vmtp/vmtp.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/refstack/refstack.py b/functest/opnfv_tests/openstack/refstack/refstack.py
index a58efcf99..faf183f76 100644
--- a/functest/opnfv_tests/openstack/refstack/refstack.py
+++ b/functest/opnfv_tests/openstack/refstack/refstack.py
@@ -45,7 +45,7 @@ class Refstack(tempest.TempestCommon):
except subprocess.CalledProcessError as cpe:
self.__logger.error(
"Exception when listing tempest tests: %s\n%s",
- cpe.cmd, cpe.output)
+ cpe.cmd, cpe.output.decode("utf-8"))
raise
finally:
os.chdir(olddir)
diff --git a/functest/opnfv_tests/openstack/vmtp/vmtp.py b/functest/opnfv_tests/openstack/vmtp/vmtp.py
index f47884861..c146d60ad 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")