From: Samuel Cabrero Date: Wed, 13 Apr 2022 11:20:27 +0000 (+0200) Subject: selftest: Use selftest's TMPDIR to store the krb5 ccache in pam_winbind tests X-Git-Tag: talloc-2.3.4~383 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db7e296f9caf52d82f33fbeb511d8889abd60a7a;p=thirdparty%2Fsamba.git selftest: Use selftest's TMPDIR to store the krb5 ccache in pam_winbind tests Using /tmp directly can lead to errors if multiple autobuilds are running at the same time. Using tempfile.gettempdir() will look for $TMPDIR environment variable. Signed-off-by: Samuel Cabrero Reviewed-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- diff --git a/selftest/tests.py b/selftest/tests.py index 19b07dfec27..501d7a7df80 100644 --- a/selftest/tests.py +++ b/selftest/tests.py @@ -235,7 +235,7 @@ if with_pam: options = [ { "description": "krb5", - "pam_options": "krb5_auth krb5_ccache_type=FILE", + "pam_options": "krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_%%u" % (tempfile.gettempdir()), }, { "description": "default",