From 7455c53fa4f7871b3980f820d22b0fd411195704 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Wed, 15 Jun 2022 13:21:16 +1200 Subject: pytest/join: use TestCaseInTempDir.rm_files/dirs Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett Reviewed-by: Noel Power --- python/samba/tests/join.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/samba/tests/join.py b/python/samba/tests/join.py index db9d8a892b7..da34171da28 100644 --- a/python/samba/tests/join.py +++ b/python/samba/tests/join.py @@ -74,10 +74,8 @@ class JoinTestCase(DNSTKeyTest): if paths is not None: shutil.rmtree(paths.private_dir) shutil.rmtree(paths.state_dir) - shutil.rmtree(os.path.join(self.tempdir, "etc")) - shutil.rmtree(os.path.join(self.tempdir, "msg.lock")) - os.unlink(os.path.join(self.tempdir, "names.tdb")) - shutil.rmtree(os.path.join(self.tempdir, "bind-dns")) + self.rm_dirs("etc", "msg.lock", "bind-dns") + self.rm_files("names.tdb") self.join_ctx.cleanup_old_join(force=True) -- cgit v1.2.3