1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-17 04:23:50 +03:00

tests: Create symlinks using posix extensions

This way we can run the tests and more easily put them into knownfail
individually. Before this, everything went into the error category,
which was not so easy to catch in something like knownfail.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2023-09-07 17:00:17 +02:00
committed by Jeremy Allison
parent f893cf85cc
commit 03ce770e8d
3 changed files with 7 additions and 2 deletions

View File

@@ -34,10 +34,12 @@ class Smb2SymlinkTests(samba.tests.libsmb.LibsmbTests):
self.server_ip,
share,
self.lp,
self.creds)
self.creds,
force_smb1=True)
except NTSTATUSError as e:
if e.args[0] != ntstatus.NT_STATUS_CONNECTION_RESET:
raise
smb1.smb1_posix()
share = samba.tests.env_get_var_value(
"SMB2_SHARE", allow_missing=True)