selftest: Account for have_fast_support in determining whether FAST is supported
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 30 Mar 2023 19:38:09 +0000 (08:38 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 31 Mar 2023 08:29:32 +0000 (08:29 +0000)
have_fast_support is unconditionally set to 1, so this doesn't change
any behaviour.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/selftest/tests.py

index 390ace5a766d3117b3d553f4ff61cdf40c5e87d6..c11347f4f79176760a7c94b26724906041afb94b 100755 (executable)
@@ -1056,7 +1056,7 @@ for env, fast_support in [("ad_dc_default:local", True),
     planoldpythontestsuite(env, "samba.tests.krb5.s4u_tests",
                            environ={
                                **krb5_environ,
-                               'FAST_SUPPORT': int(fast_support),
+                               'FAST_SUPPORT': int(have_fast_support and fast_support),
                            })
 planoldpythontestsuite("rodc:local", "samba.tests.krb5.rodc_tests",
                        environ=krb5_environ)
@@ -1731,7 +1731,7 @@ for env, fast_support in [("ad_dc", True),
     planpythontestsuite(env, "samba.tests.krb5.compatability_tests",
                         environ={
                             **krb5_environ,
-                            'FAST_SUPPORT': int(fast_support),
+                            'FAST_SUPPORT': int(have_fast_support and fast_support),
                         })
 planpythontestsuite("ad_dc", "samba.tests.krb5.kdc_tests",
                     environ=krb5_environ)