]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/vstart_runner: make remote.sh return str as default 35601/head
authorXiubo Li <xiubli@redhat.com>
Thu, 23 Apr 2020 23:14:36 +0000 (19:14 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 17 Jun 2020 14:42:54 +0000 (16:42 +0200)
To address the issue in https://github.com/ceph/teuthology/pull/1459.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 624944503e7c6aa246331f4d9f291cf714296380)

qa/tasks/vstart_runner.py

index cf6aaa123d55485ed5faf5bfbeedb96525e8bf59..65b8070e9103a820a29bfee214967fa176939add 100644 (file)
@@ -318,7 +318,7 @@ class LocalRemote(object):
             remote_date = remote.sh('date')
         """
         if 'stdout' not in kwargs:
-            kwargs['stdout'] = BytesIO()
+            kwargs['stdout'] = StringIO()
         if 'args' not in kwargs:
             kwargs['args'] = script
         proc = self.run(**kwargs)