summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2022-06-15 13:21:16 +1200
committerDouglas Bagnall <dbagnall@samba.org>2022-09-06 21:12:36 +0000
commit7455c53fa4f7871b3980f820d22b0fd411195704 (patch)
treeb8aa6cbfd3272c0b119967194e0e3945df7891ff /python
parent4e3dabad0be0900a203896c2c2acb270d31b0a42 (diff)
downloadsamba-7455c53fa4f7871b3980f820d22b0fd411195704.tar.gz
samba-7455c53fa4f7871b3980f820d22b0fd411195704.tar.bz2
samba-7455c53fa4f7871b3980f820d22b0fd411195704.zip
pytest/join: use TestCaseInTempDir.rm_files/dirs
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <npower@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/join.py6
1 files changed, 2 insertions, 4 deletions
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)