From: Xiubo Li Date: Thu, 23 Apr 2020 11:21:46 +0000 (-0400) Subject: qa/tasks/cephfs: switch to StringIO to fix byte-like errors X-Git-Tag: v14.2.10~17^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dc2bf676a82d6cc214421523a28b3e25ede0d705;p=ceph.git qa/tasks/cephfs: switch to StringIO to fix byte-like errors Signed-off-by: Xiubo Li (cherry picked from commit dd4fc808a8a26ebbfae5b5e4bc3b6c99bf0f5d37) --- diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 4be74abfded..9ca7d10a268 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -1308,7 +1308,7 @@ class Filesystem(MDSCluster): base_args.extend(["--rank", "%s" % str(rank)]) t1 = datetime.datetime.now() - r = self.tool_remote.sh(base_args + args).strip() + r = self.tool_remote.sh(script=base_args + args, stdout=StringIO()).strip() duration = datetime.datetime.now() - t1 log.info("Ran {0} in time {1}, result:\n{2}".format( base_args + args, duration, r