From ab19827858baed16df68607bc6ceb962d23ab51d Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 19 May 2022 23:59:25 +0530 Subject: [PATCH] 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 --- qa/tasks/cephfs/test_cephfs_shell.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qa/tasks/cephfs/test_cephfs_shell.py b/qa/tasks/cephfs/test_cephfs_shell.py index d72aecd9d2229..ac869fcea6c6c 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 -- 2.39.5