From 4a7291d00e221142320e5faab0362fa5e49fb1a6 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 (cherry picked from commit d9c2ddd9fe33aa342733762b9b0fece5c8d972d0) --- 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 16cebb716e417..76ee286f81241 100644 --- a/src/test/pybind/test_rados.py +++ b/src/test/pybind/test_rados.py @@ -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']) -- 2.39.5