]> git.apps.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)
committerNathan Cutler <ncutler@suse.com>
Thu, 21 May 2020 17:51:30 +0000 (19:51 +0200)
Fixes: https://tracker.ceph.com/issues/44380
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b24edff02e6e668046b0cab6709d0ccfaf5edbc5)

qa/tasks/cephfs/test_data_scan.py

index 014dbded72a8cf63be7b33166df889527baee092..bf8fd23067236e10a209d9d52e400623f325f5a9 100644 (file)
@@ -508,6 +508,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)