]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/vstart_runner: write string to StringIO
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)
commit5fe27c22670533dfd3863cdece034045a11ae774
tree0c6e91f0a248480e1a9fc34533424b1d66a2acb3
parenta3045a7332516577bcb1a8072cec89eb02e55074
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 <kchai@redhat.com>
qa/tasks/vstart_runner.py