]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Use selftest's TMPDIR to store the krb5 ccache in pam_winbind tests
authorSamuel Cabrero <scabrero@samba.org>
Wed, 13 Apr 2022 11:20:27 +0000 (13:20 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 13 Apr 2022 12:59:30 +0000 (12:59 +0000)
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 <scabrero@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
selftest/tests.py

index 19b07dfec27ed9b67375e9bc1d8a432e49ecf3d3..501d7a7df80f8090dc1e8205eef126a0af89657f 100644 (file)
@@ -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",