]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Allow samba.tests.ntlm_auth to fail rather than error checking --diagnostics
authorAndrew Bartlett <abartlet@samba.org>
Sat, 12 Feb 2022 01:52:44 +0000 (14:52 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 17 Mar 2022 01:57:38 +0000 (01:57 +0000)
This allows a knownfail entry to be written for this test.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
python/samba/tests/ntlm_auth.py

index b909db4e8a18ec93d0a0531c6804ca3b2544cdb9..84467eac61aefe1967ecadf3bb23af814e6b267f 100644 (file)
@@ -18,6 +18,7 @@
 
 import os
 from subprocess import Popen, PIPE
+from samba.tests import BlackboxProcessError
 from samba.tests.ntlm_auth_base import NTLMAuthTestCase
 from samba.common import get_string
 
@@ -322,4 +323,7 @@ class NTLMAuthHelpersTests(NTLMAuthTestCase):
                     "--password", self.password,
                     "--domain", self.domain,
                     "--diagnostics"]
-        self.check_exit_code(cmd_line, 0)
+        try:
+            self.check_exit_code(cmd_line, 0)
+        except BlackboxProcessError as e:
+            self.fail(e)