From: Xiubo Li Date: Wed, 8 Apr 2020 09:57:33 +0000 (-0400) Subject: qa/cephfs: remove the whole subdir/ after test done X-Git-Tag: v16.1.0~2571^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b24edff02e6e668046b0cab6709d0ccfaf5edbc5;p=ceph.git qa/cephfs: remove the whole subdir/ after test done Fixes: https://tracker.ceph.com/issues/44380 Signed-off-by: Xiubo Li --- diff --git a/qa/tasks/cephfs/test_data_scan.py b/qa/tasks/cephfs/test_data_scan.py index a8e5badd480..c5a07d2ccf7 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -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)