From: Andrew Bartlett Date: Sat, 12 Feb 2022 01:52:44 +0000 (+1300) Subject: selftest: Allow samba.tests.ntlm_auth to fail rather than error checking --diagnostics X-Git-Tag: tevent-0.12.0~415 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28fc8df722b1e505ffae60c2cc9fa7d77f553629;p=thirdparty%2Fsamba.git selftest: Allow samba.tests.ntlm_auth to fail rather than error checking --diagnostics This allows a knownfail entry to be written for this test. Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- diff --git a/python/samba/tests/ntlm_auth.py b/python/samba/tests/ntlm_auth.py index b909db4e8a1..84467eac61a 100644 --- a/python/samba/tests/ntlm_auth.py +++ b/python/samba/tests/ntlm_auth.py @@ -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)