From: Joseph Sutton Date: Thu, 28 Sep 2023 01:50:39 +0000 (+1300) Subject: tests/krb5: Allow filter for tests that crash Windows X-Git-Tag: tevent-0.16.0~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e479d855d0e28ec27f28610d6cb1f5617bdfac;p=thirdparty%2Fsamba.git tests/krb5: Allow filter for tests that crash Windows Set CRASH_WINDOWS=0 when running against a Windows DC. These crashes are only possible because we can modify the PAC, but having these tests allows us to lock down Samba behaviour, so we include them. Signed-off-by: Joseph Sutton Signed-off-by: Andrew Bartlett Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 11721094429..55a8b628c26 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -790,6 +790,12 @@ class RawKerberosTest(TestCase): expect_nt_status = '1' cls.expect_nt_status = bool(int(expect_nt_status)) + crash_windows = samba.tests.env_get_var_value('CRASH_WINDOWS', + allow_missing=True) + if crash_windows is None: + crash_windows = '1' + cls.crash_windows = bool(int(crash_windows)) + def setUp(self): super().setUp() self.do_asn1_print = False