1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

tests: prepare reparsepoints.py for using POSIX on the SMB2 connection

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Ralph Boehme 2024-11-26 14:53:45 +01:00
parent d46bfc5d50
commit 8c468c6e5c

View File

@ -22,9 +22,12 @@ from samba import reparse_symlink
import samba.tests.libsmb
import stat
def posix_context(mode):
return (libsmb.SMB2_CREATE_TAG_POSIX, mode.to_bytes(4, 'little'))
class ReparsePoints(samba.tests.libsmb.LibsmbTests):
def connection(self):
def connection(self, posix=False):
share = samba.tests.env_get_var_value("SHARENAME", allow_missing=True)
if not share:
share = "tmp"
@ -34,6 +37,7 @@ class ReparsePoints(samba.tests.libsmb.LibsmbTests):
share,
self.lp,
self.creds,
posix=posix,
force_smb1=smb1)
return conn