Revert "test: use gpgconf --create-socketdir if available"

This reverts commit e7b88e8b0a.

It turns out that this does not work well in environments without a
running systemd (or some other provider of /run/user)
This commit is contained in:
David Bremner 2017-02-27 18:26:47 -04:00
parent c028ec8860
commit 5a42bb96c1

View file

@ -229,19 +229,10 @@ test_fixed=0
test_broken=0 test_broken=0
test_success=0 test_success=0
_shutdown_gpg_agent () {
if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then
gpgconf --kill gpg-agent
gpgconf --remove-socketdir
fi
}
_exit_common () { _exit_common () {
code=$? code=$?
trap - EXIT trap - EXIT
set +ex set +ex
_shutdown_gpg_agent
rm -rf "$TEST_TMPDIR" rm -rf "$TEST_TMPDIR"
} }
@ -1285,11 +1276,6 @@ test_init_ () {
. ./test-lib-common.sh || exit 1 . ./test-lib-common.sh || exit 1
# we need the setting of GNUPGHOME in test-lib-common.sh
if [ ${NOTMUCH_HAVE_GPGCONF_SOCKETDIR} = 1 ]; then
gpgconf --create-socketdir
fi
emacs_generate_script emacs_generate_script