From a2a8c21abe4983009e1f1b38f07c081b6140a8e4 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 1 Apr 2015 13:56:13 +0100 Subject: [PATCH] tasks: update test_journal_repair This broke with recent Client changes that do better caching of readdir results, such that doing an ls twice is no longer sufficient to see a fresh result after repair - we need to remount instead. Signed-off-by: John Spray --- tasks/cephfs/test_journal_repair.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/cephfs/test_journal_repair.py b/tasks/cephfs/test_journal_repair.py index 5626e88ba9be4..99f4a5db8e376 100644 --- a/tasks/cephfs/test_journal_repair.py +++ b/tasks/cephfs/test_journal_repair.py @@ -96,6 +96,9 @@ class TestJournalRepair(CephFSTestCase): # will be invisible in readdir). # FIXME: hook in forward scrub here to regenerate backtraces proc = self.mount_a.run_shell(['ls', '-R']) + self.mount_a.umount_wait() # remount to clear client cache before our second ls + self.mount_a.mount() + self.mount_a.wait_until_mounted() proc = self.mount_a.run_shell(['ls', '-R']) self.assertEqual(proc.stdout.getvalue().strip(), -- 2.39.5