Skip to content

Commit

Permalink
qa/cephfs: remove temporary files
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rishabh-d-dave committed May 20, 2022
1 parent ff86ae7 commit ab19827
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qa/tasks/cephfs/test_cephfs_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ def test_get_with_target_name(self):
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
Expand Down Expand Up @@ -394,6 +397,9 @@ def test_get_doesnt_create_dir(self):
# 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
Expand Down

0 comments on commit ab19827

Please sign in to comment.