]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: remove the whole subdir/ after test done
authorXiubo Li <xiubli@redhat.com>
Wed, 8 Apr 2020 09:57:33 +0000 (05:57 -0400)
committerXiubo Li <xiubli@redhat.com>
Mon, 13 Apr 2020 02:17:49 +0000 (22:17 -0400)
Fixes: https://tracker.ceph.com/issues/44380
Signed-off-by: Xiubo Li <xiubli@redhat.com>
qa/tasks/cephfs/test_data_scan.py

index a8e5badd4809c38c98766988218b95f0de757dd4..c5a07d2ccf75779842d9eb3426e4775ae84c4879 100644 (file)
@@ -510,6 +510,9 @@ class TestDataScan(CephFSTestCase):
         keys = self._dirfrag_keys(frag_obj_id)
         self.assertListEqual(sorted(keys), sorted(["%s_head" % f for f in file_names]))
 
+        # Remove the whole 'sudbdir' directory
+        self.mount_a.run_shell(["rm", "-rf", "subdir/"])
+
     @for_teuthology
     def test_parallel_execution(self):
         self._rebuild_metadata(ManyFilesWorkload(self.fs, self.mount_a, 25), workers=7)