]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: make ceph-disk workunit resilient to non ascii
authorLoic Dachary <ldachary@redhat.com>
Mon, 29 Feb 2016 11:14:44 +0000 (18:14 +0700)
committerLoic Dachary <ldachary@redhat.com>
Fri, 4 Mar 2016 02:13:35 +0000 (09:13 +0700)
Signed-off-by: Loic Dachary <loic@dachary.org>
qa/workunits/ceph-disk/ceph-disk-test.py

index 08f697be8bb86489459cdacfafcfef3b1c5be670..682bdd973f37e1e63a972282bd2a6039827e8cc2 100644 (file)
@@ -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,