mirror of
https://github.com/samba-team/samba.git
synced 2025-12-19 12:23:49 +03:00
tests: fix test teardown/cleanup of test_create_reparse_directory()
This kept failing in a local make test not being able to cleanup the test directory in the *subsequent* test test_create_reparse_nonempty_directory(). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
@@ -237,10 +237,14 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests):
|
||||
err = e.args[0]
|
||||
if (err != ntstatus.NT_STATUS_ACCESS_DENIED):
|
||||
raise
|
||||
finally:
|
||||
conn.close(dir_fd)
|
||||
self.clean_file(conn, dirname)
|
||||
|
||||
if (err == ntstatus.NT_STATUS_ACCESS_DENIED):
|
||||
self.fail("Could not set reparse point on directory")
|
||||
conn.delete_on_close(fd, 1)
|
||||
conn.close(dir_fd)
|
||||
self.clean_file(conn, dirname)
|
||||
return
|
||||
|
||||
with self.assertRaises(NTSTATUSError) as e:
|
||||
|
||||
Reference in New Issue
Block a user