[PATCH] test: create TEST_TMPDIR for holding temporary files

Jameson Graef Rollins jrollins at finestructure.net
Wed Nov 16 11:28:26 PST 2011


On Wed, 16 Nov 2011 21:09:00 +0200, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> +# Note: TEST_TMPDIR *NOT* exported!
> +TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX")

Hi, Tomi.  I don't think you need to do any of the variable gymnastics
if you use the mktemp --tempdir option, which uses TMPDIR if set, but
falls back to /tmp otherwise.  This functionality is in the gnu version
of mktemp at least.

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111116/af2a39ab/attachment-0001.pgp>


More information about the notmuch mailing list