mirror of
https://github.com/samba-team/samba.git
synced 2025-12-10 04:23:50 +03:00
python/tests/gensec: make it possible to add knownfail tests for gensec.update()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14106 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
02f538816b
commit
eee1e8b6ac
@@ -79,10 +79,16 @@ class GensecTests(samba.tests.TestCase):
|
||||
while True:
|
||||
if not client_finished:
|
||||
print("running client gensec_update")
|
||||
(client_finished, client_to_server) = self.gensec_client.update(server_to_client)
|
||||
try:
|
||||
(client_finished, client_to_server) = self.gensec_client.update(server_to_client)
|
||||
except samba.NTSTATUSError as nt:
|
||||
raise AssertionError(nt)
|
||||
if not server_finished:
|
||||
print("running server gensec_update")
|
||||
(server_finished, server_to_client) = self.gensec_server.update(client_to_server)
|
||||
try:
|
||||
(server_finished, server_to_client) = self.gensec_server.update(client_to_server)
|
||||
except samba.NTSTATUSError as nt:
|
||||
raise AssertionError(nt)
|
||||
|
||||
if client_finished and server_finished:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user