]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Allow filter for tests that crash Windows
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 28 Sep 2023 01:50:39 +0000 (14:50 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 28 Sep 2023 03:33:38 +0000 (03:33 +0000)
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 <josephsutton@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/raw_testcase.py

index 117210944291644cc8a7e3376418e069f02dfaee..55a8b628c26cfb49abdd363683dc9582054fff76 100644 (file)
@@ -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