From: Greg Hudson Date: Sun, 1 Aug 2021 15:56:21 +0000 (-0400) Subject: Avoid long socket paths in KCM tests X-Git-Tag: krb5-1.20-beta1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1205%2Fhead;p=thirdparty%2Fkrb5.git Avoid long socket paths in KCM tests The build directory path may be too long for a Unix domain socket, so use a path in a temporary directory instead. Reported by Ryan Schmidt. ticket: 9019 --- diff --git a/src/tests/t_ccache.py b/src/tests/t_ccache.py index 6ea9fb9697..9e005ec566 100755 --- a/src/tests/t_ccache.py +++ b/src/tests/t_ccache.py @@ -21,8 +21,10 @@ # or implied warranty. from k5test import * +import tempfile -kcm_socket_path = os.path.join(os.getcwd(), 'testdir', 'kcm') +socketdir = tempfile.TemporaryDirectory() +kcm_socket_path = os.path.join(socketdir.name, 'kcm') conf = {'libdefaults': {'kcm_socket': kcm_socket_path, 'kcm_mach_service': '-'}} realm = K5Realm(krb5_conf=conf)