From 62777f653da246b4a0a96acd139886d55d77a820 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 9 Jun 2020 15:27:09 -0700 Subject: [PATCH] qa: fix type error in stderr processing Fixes: 422d736568bd4d92fdf380b07da0ccac46cf3efd Signed-off-by: Patrick Donnelly --- qa/tasks/cephfs/fuse_mount.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 59cd3fc0070..a58c7bcd398 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -466,11 +466,12 @@ print(_find_admin_socket("{client_name}")) try: p = self.client_remote.run(args= ['sudo', self._prefix + 'ceph', '--admin-daemon', asok_path] + args, - stdout=StringIO(), stderr=StringIO(), + stdout=StringIO(), stderr=StringIO(), wait=False, timeout=(15*60)) + p.wait() break except CommandFailedError: - if "Connection refused" in stderr.getvalue(): + if "connection refused" in p.stderr.getvalue().lower(): pass return json.loads(p.stdout.getvalue().strip()) -- 2.39.5