]> git-server-git.apps.pok.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>
Sun, 14 Jun 2020 08:34:52 +0000 (16:34 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit dd4fc808a8a26ebbfae5b5e4bc3b6c99bf0f5d37)

qa/tasks/cephfs/filesystem.py

index 348cd55704d945aaca7382d7c7ab4ffcae21feb3..093bb73efc0a7aee74a4c5ee83730a999e94dfd7 100644 (file)
@@ -1326,7 +1326,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