mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
selftest: Use selftest's TMPDIR to store the krb5 ccache in pam_winbind_setcred test
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>
This commit is contained in:
parent
db7e296f9c
commit
685006c830
@ -18,7 +18,7 @@
|
||||
# three separated by newlines. All other lines in the output are considered
|
||||
# comments.
|
||||
|
||||
import os
|
||||
import os, tempfile
|
||||
from selftesthelpers import bindir, srcdir, python
|
||||
from selftesthelpers import planpythontestsuite, samba4srcdir
|
||||
from selftesthelpers import plantestsuite, bbdir
|
||||
@ -383,7 +383,7 @@ if with_pam:
|
||||
pam_options])
|
||||
|
||||
description = "krb5"
|
||||
pam_options = "'krb5_auth krb5_ccache_type=FILE:/tmp/krb5cc_pam_test_%u'"
|
||||
pam_options = "'krb5_auth krb5_ccache_type=FILE:%s/krb5cc_pam_test_setcred_%%u'" % (tempfile.gettempdir())
|
||||
plantestsuite("samba.tests.pam_winbind_setcred(domain+%s)" % description, "ad_dc:local",
|
||||
[os.path.join(srcdir(), "python/samba/tests/test_pam_winbind_setcred.sh"),
|
||||
valgrindify(python), pam_wrapper_so_path,
|
||||
|
Loading…
x
Reference in New Issue
Block a user