From: Andreas Schneider Date: Wed, 31 Mar 2021 13:24:20 +0000 (+0200) Subject: selftest: Allow to set the 'log level' for clients X-Git-Tag: tevent-0.11.0~1334 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b183f5751248e5c1b853daf0984996f0c5e9c31;p=thirdparty%2Fsamba.git selftest: Allow to set the 'log level' for clients This allows to set the 'log level' for clients on the command line: make test TESTS=wurst CLIENT_LOG_LEVEL=10 Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Mar 31 21:20:23 UTC 2021 on sn-devel-184 --- diff --git a/selftest/selftest.pl b/selftest/selftest.pl index cfc5e438480..d0c025af6b3 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -528,6 +528,7 @@ sub write_clientconf($$$) my $cacert = "$cadir/Public/CA-samba.example.com-cert.pem"; my $cacrl_pem = "$cadir/Public/CA-samba.example.com-crl.pem"; my $ca_users_dir = "$cadir/Users"; + my $client_loglevel = $ENV{CLIENT_LOG_LEVEL} || 1; # each user has a USER-${USER_PRINCIPAL_NAME}-cert.pem and # USER-${USER_PRINCIPAL_NAME}-private-key.pem symlink @@ -581,7 +582,7 @@ sub write_clientconf($$$) system:anonymous = true client lanman auth = Yes client min protocol = CORE - log level = 1 + log level = $client_loglevel torture:basedir = $clientdir #We don't want to pass our self-tests if the PAC code is wrong gensec:require_pac = true