mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
pytest/join: use TestCaseInTempDir.rm_files/dirs
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15191 BUG: https://bugzilla.samba.org/show_bug.cgi?id=15189 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <npower@samba.org> (cherry picked from commit 7455c53fa4f7871b3980f820d22b0fd411195704)
This commit is contained in:
parent
6e217c047d
commit
fba1864d7a
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user