1 Return-Path: <tomi.ollila@nixu.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 9F5EB429E21
\r
6 for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 11:09:04 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id msZcE5vcQxKQ for <notmuch@notmuchmail.org>;
\r
16 Wed, 16 Nov 2011 11:09:04 -0800 (PST)
\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id D8256431FD0
\r
21 for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 11:09:03 -0800 (PST)
\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])
\r
23 by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id
\r
25 for <notmuch@notmuchmail.org>; Wed, 16 Nov 2011 21:09:00 +0200
\r
26 From: Tomi Ollila <tomi.ollila@iki.fi>
\r
27 To: <notmuch@notmuchmail.org>
\r
28 Subject: [PATCH] test: create TEST_TMPDIR for holding temporary files
\r
29 User-Agent: Notmuch/0.9+73~ged20210 (http://notmuchmail.org) Emacs/23.3.1
\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
32 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
33 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
34 Date: Wed, 16 Nov 2011 21:09:00 +0200
\r
35 Message-ID: <yf6bosbsx4j.fsf@taco2.nixu.fi>
\r
37 Content-Type: text/plain; charset=us-ascii
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Wed, 16 Nov 2011 19:09:04 -0000
\r
52 The TEST_TMPDIR if first needed to hold dtach's socket (due
\r
53 to 108-character limit in socket file names). Later it can be
\r
54 used to hold other temporary files; directory deleted at exit.
\r
57 I'm not fully satisfied with variable name -- compare to
\r
58 the use of TEST_DIRECTORY. Anyway it is the best I could
\r
59 come up with -- to not invent yet one more naming convention.
\r
61 Sometime in the future we could rework the variable
\r
62 names to have more consistent format.
\r
64 test/test-lib.sh | 3 +++
\r
65 1 files changed, 3 insertions(+), 0 deletions(-)
\r
67 diff --git a/test/test-lib.sh b/test/test-lib.sh
\r
68 index 1ea7fa9..4cd0157 100755
\r
69 --- a/test/test-lib.sh
\r
70 +++ b/test/test-lib.sh
\r
71 @@ -174,6 +174,7 @@ test_success=0
\r
75 + rm -rf "$TEST_TMPDIR"
\r
76 if test -n "$GIT_EXIT_OK"
\r
79 @@ -184,6 +185,8 @@ die () {
\r
83 +# Note: TEST_TMPDIR *NOT* exported!
\r
84 +TEST_TMPDIR=$(mktemp -d "${TMPDIR:-/tmp}/notmuch-test-$$.XXXXXX")
\r
87 test_decode_color () {
\r