From 7637a0e706c6d8453e95bb094084265d4c8d831a Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Thu, 29 Oct 2020 21:27:35 -0400 Subject: [PATCH] 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) --- qa/tasks/cephfs/test_damage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.47.3