selftest: Pass env variables to fips tests
authorAndreas Schneider <asn@samba.org>
Tue, 27 Jul 2021 14:06:07 +0000 (16:06 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 28 Jul 2021 06:23:37 +0000 (06:23 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/tests.py

index 1f9d3f37a76959b072f386daeccf8361c42bef0b..46fc8a802bb6fcaf21324d2c31d0a0018760df38 100644 (file)
@@ -94,8 +94,11 @@ planpythontestsuite(
                 os.path.join(samba4srcdir, "..", "third_party", "waf")])
 planpythontestsuite("fileserver", "samba.tests.smbd_fuzztest")
 planpythontestsuite("nt4_dc_smb1", "samba.tests.dcerpc.binding")
-for env in [ 'ad_dc:local', 'ad_dc_fips:local' ]:
-    planpythontestsuite(env, "samba.tests.dcerpc.samr_change_password")
+planpythontestsuite('ad_dc:local', "samba.tests.dcerpc.samr_change_password")
+planpythontestsuite('ad_dc_fips:local',
+                    "samba.tests.dcerpc.samr_change_password",
+                    environ={'GNUTLS_FORCE_FIPS_MODE': '1',
+                             'OPENSSL_FORCE_FIPS_MODE': '1'})
 
 
 def cmdline(script, *args):