The TEST_TMPDIR if first needed to hold dtach's socket (due
to 108-character limit in socket file names). Later it can be
used to hold other temporary files; directory deleted at exit.
if test -n "$GIT_EXIT_OK"
then
exit $code
if test -n "$GIT_EXIT_OK"
then
exit $code
+# Note: TEST_TMPDIR *NOT* exported!
+TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX")
trap 'die' EXIT
test_decode_color () {
trap 'die' EXIT
test_decode_color () {