]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: return a string via getfattr 35535/head
authorPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 May 2020 21:15:19 +0000 (14:15 -0700)
committerRamana Raja <rraja@redhat.com>
Thu, 11 Jun 2020 10:16:02 +0000 (15:46 +0530)
Fixes: https://tracker.ceph.com/issues/45666
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 3c1330795add81126424e9e0a49cc07881fbdf8f)

qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_exports.py

index e56010b4aa521d230176496aa8080d9aad2ea2a7..ee36bc818e65592a2fcf1bca4d942cb428f23b31 100644 (file)
@@ -669,7 +669,7 @@ class CephFSMount(object):
             else:
                 raise
 
-        return p.stdout.getvalue()
+        return str(p.stdout.getvalue())
 
     def df(self):
         """
index 019c91c5a8c0bdea89328d17c008755c19218df2..abaf92e6bdae138fa3b5b1183392e6bd0140d466 100644 (file)
@@ -133,10 +133,10 @@ class TestExports(CephFSTestCase):
             log.debug("mount.getfattr('1','ceph.dir.pin'): %s " % dir_pin)
             if str(p) < "5" and not(dir_pin):
                 self.skipTest("Kernel does not support getting the extended attribute ceph.dir.pin")
-        self.assertEqual(self.mount_a.getfattr("1", "ceph.dir.pin"), b'1')
-        self.assertEqual(self.mount_a.getfattr("1/2", "ceph.dir.pin"), b'0')
+        self.assertEqual(self.mount_a.getfattr("1", "ceph.dir.pin"), '1')
+        self.assertEqual(self.mount_a.getfattr("1/2", "ceph.dir.pin"), '0')
         if (len(self.fs.get_active_names()) > 2):
-            self.assertEqual(self.mount_a.getfattr("1/2/3", "ceph.dir.pin"), b'2')
+            self.assertEqual(self.mount_a.getfattr("1/2/3", "ceph.dir.pin"), '2')
 
     def test_session_race(self):
         """