summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-10-11 13:23:17 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-10-12 14:33:33 +0000
commiteee1e8b6ac622e22a34ebfb684e70626cdd20fc1 (patch)
tree2d1ed707ab9825c48264ec5f5660a53f2e6ba80f /python
parent02f538816b409f1a122fae8fd08d761e3617e798 (diff)
downloadsamba-eee1e8b6ac622e22a34ebfb684e70626cdd20fc1.tar.gz
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>
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/gensec.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/python/samba/tests/gensec.py b/python/samba/tests/gensec.py
index b5ce51de756..c9056ef9681 100644
--- a/python/samba/tests/gensec.py
+++ b/python/samba/tests/gensec.py
@@ -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