From: Loic Dachary Date: Mon, 29 Feb 2016 11:14:44 +0000 (+0700) Subject: tests: make ceph-disk workunit resilient to non ascii X-Git-Tag: v10.1.0~200^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ed56cef1f1491760aa8b3cd2637eb8cf9db214ad;p=ceph.git tests: make ceph-disk workunit resilient to non ascii Signed-off-by: Loic Dachary --- diff --git a/qa/workunits/ceph-disk/ceph-disk-test.py b/qa/workunits/ceph-disk/ceph-disk-test.py index 08f697be8bb8..682bdd973f37 100644 --- a/qa/workunits/ceph-disk/ceph-disk-test.py +++ b/qa/workunits/ceph-disk/ceph-disk-test.py @@ -88,7 +88,7 @@ class CephDisk: LOG.debug('SKIP dangerous and experimental') continue lines.append(line) - LOG.debug(str(line.strip())) + LOG.debug(line.strip().encode('ascii', 'ignore')) if proc.wait() != 0: raise subprocess.CalledProcessError( returncode=proc.returncode,