]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/vstart_runner: write string to StringIO 32438/head
authorKefu Chai <kchai@redhat.com>
Fri, 27 Dec 2019 15:40:53 +0000 (23:40 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 27 Dec 2019 17:11:54 +0000 (01:11 +0800)
we use `six.StringIO` for stdout when writing output messages from
`self.subproc.communicate()`, and `six.StringIO` accepts strings, so we
need to decode the output before sending them to `six.StringIO`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
qa/tasks/vstart_runner.py

index 054ab6344edb2805a78339f9d49899057b898195..de6922e61151c9749f20eb1bb113d3d055ad2552 100644 (file)
@@ -176,6 +176,7 @@ class LocalRemoteProcess(object):
                 return
 
         out, err = self.subproc.communicate()
+        out, err = out.decode(), err.decode()
         self.stdout.write(out)
         self.stderr.write(err)