diff options
author | Cédric Ollivier <ollivier.cedric@gmail.com> | 2019-05-25 09:58:27 +0200 |
---|---|---|
committer | Cédric Ollivier <ollivier.cedric@gmail.com> | 2019-05-25 09:58:27 +0200 |
commit | f3da18828db1665f9e293bdc5248d32eb7e91f7f (patch) | |
tree | 887f6ffd9e005b5d480e60a8de4e3b69098e4123 /functest_kubernetes | |
parent | e38bb1ee4c2a5c2e03ad7af46631da37c5f189ba (diff) |
Set utf-8 in decode and encode calls
It eases backporting in iruya and hunter as a few logs can't be
decoded as ascii [1].
[1] https://build.opnfv.org/ci/job/functest-opnfv-functest-vnf-iruya-juju_epc-run/56/console
Change-Id: If241c5323f286c33aaae804479375efe4c3c1588
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
Diffstat (limited to 'functest_kubernetes')
-rw-r--r-- | functest_kubernetes/k8stest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functest_kubernetes/k8stest.py b/functest_kubernetes/k8stest.py index bf28a618..c78959ca 100644 --- a/functest_kubernetes/k8stest.py +++ b/functest_kubernetes/k8stest.py @@ -46,7 +46,7 @@ class K8sTesting(testcase.TestCase): process = subprocess.Popen(cmd_line, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - output = process.stdout.read().decode() + output = process.stdout.read().decode("utf-8") if ('Error loading client' in output or 'Unexpected error' in output): raise Exception(output) |