]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: switch to StringIO to fix byte-like errors
authorXiubo Li <xiubli@redhat.com>
Thu, 23 Apr 2020 11:21:46 +0000 (07:21 -0400)
committerKefu Chai <kchai@redhat.com>
Wed, 3 Jun 2020 11:57:00 +0000 (19:57 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit dd4fc808a8a26ebbfae5b5e4bc3b6c99bf0f5d37)

qa/tasks/cephfs/filesystem.py

index 4be74abfded91dad692ea82687e8bf09ddefbe72..9ca7d10a268da3d741f72dfe54149d7f9679e4a9 100644 (file)
@@ -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