From: Andreas Schneider Date: Tue, 27 Jul 2021 14:06:07 +0000 (+0200) Subject: selftest: Pass env variables to fips tests X-Git-Tag: ldb-2.5.0~1047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd00fbdd058ddfe44610d179b3f0d4fd5147df4;p=thirdparty%2Fsamba.git selftest: Pass env variables to fips tests Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/selftest/tests.py b/selftest/tests.py index 1f9d3f37a76..46fc8a802bb 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -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):