From: Xiubo Li Date: Fri, 30 Oct 2020 01:27:35 +0000 (-0400) Subject: qa: for the latest kclient it will also return EIO X-Git-Tag: v15.2.13~8^2~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7637a0e706c6d8453e95bb094084265d4c8d831a;p=ceph.git qa: for the latest kclient it will also return EIO Fixes: https://tracker.ceph.com/issues/45100 Signed-off-by: Xiubo Li (cherry picked from commit 61a4b8c6709a046faed82da43bda568af90de6ee) --- diff --git a/qa/tasks/cephfs/test_damage.py b/qa/tasks/cephfs/test_damage.py index 9a79392191b6..20f9ca957e33 100644 --- a/qa/tasks/cephfs/test_damage.py +++ b/qa/tasks/cephfs/test_damage.py @@ -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")