From f3da18828db1665f9e293bdc5248d32eb7e91f7f Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 25 May 2019 09:58:27 +0200 Subject: Set utf-8 in decode and encode calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- functest_kubernetes/k8stest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functest_kubernetes') 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) -- cgit 1.2.3-korg