]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind/test_rados.py: collect output in stdout for "bench" cmd
authorKefu Chai <kchai@redhat.com>
Sat, 12 May 2018 11:33:52 +0000 (19:33 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 11 Sep 2018 20:03:45 +0000 (22:03 +0200)
it was changed from stderr to stdout in 23583ccc

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d9c2ddd9fe33aa342733762b9b0fece5c8d972d0)

src/test/pybind/test_rados.py

index 16cebb716e417aea1ec0052d2b7fac5af6dab067..76ee286f8124179a63c41633b5fa23b206a34b55 100644 (file)
@@ -1107,8 +1107,8 @@ class TestCommand(object):
         ret, buf, err = self.rados.osd_command(0, json.dumps(cmd), b'',
                                                timeout=30)
         eq(ret, 0)
-        assert len(err) > 0
-        out = json.loads(err)
+        assert len(buf) > 0
+        out = json.loads(buf.decode('utf-8'))
         eq(out['blocksize'], cmd['size'])
         eq(out['bytes_written'], cmd['count'])