From: Kefu Chai Date: Sat, 12 May 2018 11:33:52 +0000 (+0800) Subject: test/pybind/test_rados.py: collect output in stdout for "bench" cmd X-Git-Tag: v14.0.0~109^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d9c2ddd9fe33aa342733762b9b0fece5c8d972d0;p=ceph-ci.git test/pybind/test_rados.py: collect output in stdout for "bench" cmd it was changed from stderr to stdout in 23583ccc Signed-off-by: Kefu Chai --- diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index 098e5ef15ff..c8f958bb57d 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -1070,8 +1070,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'])