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: v16.1.0~683^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F37869%2Fhead;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 --- 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")