]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix type error in stderr processing 35627/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 9 Jun 2020 22:27:09 +0000 (15:27 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 18 Jun 2020 14:12:08 +0000 (07:12 -0700)
Fixes: 422d736568bd4d92fdf380b07da0ccac46cf3efd
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/fuse_mount.py

index 59cd3fc00704f2cfdf2408c9fdccd31ff5543033..a58c7bcd398a5514b3acc4132cbb43ee0eb03851 100644 (file)
@@ -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())