From: Rishabh Dave Date: Thu, 19 May 2022 18:29:25 +0000 (+0530) Subject: qa/cephfs: remove temporary files X-Git-Tag: v18.0.0~836^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab19827858baed16df68607bc6ceb962d23ab51d;p=ceph.git qa/cephfs: remove temporary files 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 --- diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index d72aecd9d222..ac869fcea6c6 100644 --- a/qa/tasks/cephfs/test_cephfs_shell.py +++ b/qa/tasks/cephfs/test_cephfs_shell.py @@ -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