From d9c2ddd9fe33aa342733762b9b0fece5c8d972d0 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 12 May 2018 19:33:52 +0800 Subject: [PATCH] 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 --- src/test/pybind/test_rados.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/pybind/test_rados.py b/src/test/pybind/test_rados.py index 098e5ef15fff2..c8f958bb57d47 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']) -- 2.47.3