]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: for the latest kclient it will also return EIO 40765/head
authorXiubo Li <xiubli@redhat.com>
Fri, 30 Oct 2020 01:27:35 +0000 (21:27 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 10 Apr 2021 20:57:29 +0000 (22:57 +0200)
Fixes: https://tracker.ceph.com/issues/45100
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 61a4b8c6709a046faed82da43bda568af90de6ee)

qa/tasks/cephfs/test_damage.py

index 9a79392191b600cc5f50b6567801b6e904c08604..20f9ca957e337e36e5df8faf3bf3dde9d8f82d0f 100644 (file)
@@ -440,8 +440,8 @@ class TestDamage(CephFSTestCase):
             if isinstance(self.mount_a, FuseMount):
                 self.assertEqual(e.exitstatus, errno.EIO)
             else:
-                # Kernel client handles this case differently
-                self.assertEqual(e.exitstatus, errno.ENOENT)
+                # Old kernel client handles this case differently
+                self.assertIn(e.exitstatus, [errno.ENOENT, errno.EIO])
         else:
             raise AssertionError("Expected EIO")