Re: [PATCH] lib: reword comment about XFOLDER: prefix
[notmuch-archives.git] / ec / 5eb64ad112e885a735f2d06627286327a42b6f
1 Return-Path: <sojkam1@fel.cvut.cz>\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 8D75740DBF6\r
6         for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 13:55:06 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=ham\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 DwyAyD9R9v3d for <notmuch@notmuchmail.org>;\r
16         Sun, 14 Nov 2010 13:54:53 -0800 (PST)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 06A2540DBC9\r
19         for <notmuch@notmuchmail.org>; Sun, 14 Nov 2010 13:54:42 -0800 (PST)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 5AE6B19F331D;\r
22         Sun, 14 Nov 2010 22:54:41 +0100 (CET)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id ONu3IbyDs2jj; Sun, 14 Nov 2010 22:54:39 +0100 (CET)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id D123E19F3342;\r
30         Sun, 14 Nov 2010 22:54:39 +0100 (CET)\r
31 Received: from steelpick.2x.cz (unknown [213.29.198.144])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id BBEACFA004;\r
34         Sun, 14 Nov 2010 22:54:39 +0100 (CET)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1PHkX1-0002P3-Bh; Sun, 14 Nov 2010 22:54:39 +0100\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 3/5] test: Break on test script (or other) error\r
41 Date: Sun, 14 Nov 2010 22:54:30 +0100\r
42 Message-Id: <1289771672-9204-3-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.2.3\r
44 In-Reply-To: <87hbfjr2sr.fsf@steelpick.2x.cz>\r
45 References: <87hbfjr2sr.fsf@steelpick.2x.cz>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sun, 14 Nov 2010 21:55:07 -0000\r
59 \r
60 Break notmuch-test whenever a test script returns non-zero status.\r
61 This happens either when some test from the script fails or when there\r
62 is an error in the script.\r
63 \r
64 This is especially useful in the latter case since the error may not\r
65 appear in the final aggregated results.\r
66 ---\r
67  test/notmuch-test |   12 +++++++++++-\r
68  1 files changed, 11 insertions(+), 1 deletions(-)\r
69 \r
70 diff --git a/test/notmuch-test b/test/notmuch-test\r
71 index b51045a..055467f 100755\r
72 --- a/test/notmuch-test\r
73 +++ b/test/notmuch-test\r
74 @@ -14,12 +14,20 @@ if [ ${BASH_VERSINFO[0]} -lt 4 ]; then\r
75      exit 1\r
76  fi\r
77  \r
78 +set -e\r
79 +\r
80 +die () {\r
81 +    echo >&2 "Unexpected failure"\r
82 +}\r
83 +\r
84 +trap 'die' 0\r
85 +\r
86  cd $(dirname "$0")\r
87  \r
88  TESTS="basic new search json thread-naming raw reply dump-restore uuencode thread-order author-order from-guessing long-id encoding emacs maildir-sync"\r
89  \r
90  # Clean up any results from a previous run\r
91 -rm -r test-results >/dev/null 2>/dev/null\r
92 +rm -rf test-results >/dev/null 2>/dev/null\r
93  \r
94  # Run the tests\r
95  for test in $TESTS; do\r
96 @@ -31,3 +39,5 @@ done\r
97  \r
98  # Clean up\r
99  rm -r test-results corpus.mail\r
100 +\r
101 +trap '' 0\r
102 -- \r
103 1.7.2.3\r
104 \r