]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: fixup test_backtrace_repair
authorJohn Spray <john.spray@redhat.com>
Fri, 28 Oct 2016 09:33:17 +0000 (10:33 +0100)
committerJohn Spray <john.spray@redhat.com>
Fri, 28 Oct 2016 09:33:17 +0000 (10:33 +0100)
The branches got mixed up and the merged one wasn't
the same one that was tested.  This is the one that
works!

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_forward_scrub.py

index a0dc3eb3dee1ee707e3ec02b4e5a13869d5f447a..ac912dd0b2968b3f402c95cbac1528b0306c3b21 100644 (file)
@@ -279,11 +279,8 @@ class TestForwardScrub(CephFSTestCase):
         self.assertEqual(['alpha', 'parent_a'],
                          [a['dname'] for a in backtrace['ancestors']])
 
-        with self.assert_cluster_log("bad backtrace on inode", invert_match=True):
-            self.fs.mds_asok(["scrub_path", "/", "repair", "recursive"])
-
         # Go corrupt the backtrace
-        self.fs._write_data_xattr(file_ino, "inode_backtrace_t",
+        self.fs._write_data_xattr(file_ino, "parent",
                                   "oh i'm sorry did i overwrite your xattr?")
 
         with self.assert_cluster_log("bad backtrace on inode"):