1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

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 <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andrew Bartlett 2022-02-12 14:52:44 +13:00
parent 5b41c871d9
commit 28fc8df722

View 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)