]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/cephfs: remove temporary files
authorRishabh Dave <ridave@redhat.com>
Thu, 19 May 2022 18:29:25 +0000 (23:59 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 20 May 2022 05:28:33 +0000 (10:58 +0530)
These temporary files don't matter for test execution with teuthology
but they do matter for execution with vstart_runner.py since the test
fails if these files exist already. And tests are often run repeatedly
with vstart_runner.py, unlike with teuthology.

Fixes: https://tracker.ceph.com/issues/55719
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/test_cephfs_shell.py

index d72aecd9d222995fec08439e764769d258528a88..ac869fcea6c6c0f9a58d910289cb2af7978947a6 100644 (file)
@@ -361,6 +361,9 @@ class TestGetAndPut(TestCephFSShell):
         log.info("o_hash:{}".format(o_hash))
         assert (s_hash == o_hash)
 
+        # cleanup
+        self.mount_a.run_shell("rm dump4", cwd=None, check_status=False)
+
     def test_get_without_target_name(self):
         """
         Test that get should fail when there is no target name
@@ -394,6 +397,9 @@ class TestGetAndPut(TestCephFSShell):
         # test that dump7 exists
         self.mount_a.run_shell("cat ./dump7", cwd=None)
 
+        # cleanup
+        self.mount_a.run_shell(args='rm dump7', cwd=None, check_status=False)
+
     def test_get_to_console(self):
         """
         Test that get passes with target name