From: Xiubo Li Date: Thu, 23 Apr 2020 23:14:36 +0000 (-0400) Subject: qa/tasks/vstart_runner: make remote.sh return str as default X-Git-Tag: v14.2.11~40^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71e228e6e81e92fc334ca94e948fadcd2605cd70;p=ceph.git qa/tasks/vstart_runner: make remote.sh return str as default To address the issue in https://github.com/ceph/teuthology/pull/1459. Signed-off-by: Xiubo Li (cherry picked from commit 624944503e7c6aa246331f4d9f291cf714296380) --- diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index cf6aaa123d55..65b8070e9103 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -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)