diff options
author | Andreas Schneider <asn@samba.org> | 2021-03-31 15:24:20 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-31 21:20:23 +0000 |
commit | 1b183f5751248e5c1b853daf0984996f0c5e9c31 (patch) | |
tree | 6228f986524537a21df94d42a65e629effabb75c /selftest | |
parent | 12f516e4680753460e7fe8811e6c6ff70057580c (diff) | |
download | samba-1b183f5751248e5c1b853daf0984996f0c5e9c31.tar.gz |
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 <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Mar 31 21:20:23 UTC 2021 on sn-devel-184
Diffstat (limited to 'selftest')
-rwxr-xr-x | selftest/selftest.pl | 3 |
1 files changed, 2 insertions, 1 deletions
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 |