From: Kefu Chai Date: Fri, 27 Dec 2019 15:40:53 +0000 (+0800) Subject: qa/tasks/vstart_runner: write string to StringIO X-Git-Tag: v15.1.0~355^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=5fe27c22670533dfd3863cdece034045a11ae774;p=ceph.git qa/tasks/vstart_runner: write string to StringIO 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 --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 054ab6344edb2..de6922e61151c 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -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)