Re: notmuch for documents
[notmuch-archives.git] / 69 / 47cd05f3519dc5c77e56c8c598d52781d7a30f
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 73CBB4196F2\r
6         for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 00:36:52 -0700 (PDT)\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 ieXhB1zz1sMn for <notmuch@notmuchmail.org>;\r
16         Fri, 23 Apr 2010 00:36:51 -0700 (PDT)\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 CDC67431FC1\r
19         for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 00:36:50 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id 138BC19F3412;\r
22         Fri, 23 Apr 2010 09:36:50 +0200 (CEST)\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 8Q1YlJfBpLlK; Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\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 C6E4319F3417;\r
30         Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id C0365FA003;\r
34         Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1O5DRQ-0005qJ-7m; Fri, 23 Apr 2010 09:36:48 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH] test: Set fixed time zone\r
41 Date: Fri, 23 Apr 2010 09:36:45 +0200\r
42 Message-Id: <1272008205-22432-1-git-send-email-sojkam1@fel.cvut.cz>\r
43 X-Mailer: git-send-email 1.7.0.4\r
44 X-BeenThere: notmuch@notmuchmail.org\r
45 X-Mailman-Version: 2.1.13\r
46 Precedence: list\r
47 List-Id: "Use and development of the notmuch mail system."\r
48         <notmuch.notmuchmail.org>\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
52 List-Post: <mailto:notmuch@notmuchmail.org>\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
55         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
56 X-List-Received-Date: Fri, 23 Apr 2010 07:36:52 -0000\r
57 \r
58 When the test suite is run in a different time zone that where Carl\r
59 lives, some tests may fail depending on the time when the test suite is\r
60 run. For example, just now I get:\r
61 \r
62      Search for all messages ("*"):...                  FAIL\r
63     --- test-031.expected       2010-04-23 09:33:47.898634822 +0200\r
64     +++ test-031.output 2010-04-23 09:33:47.898634822 +0200\r
65     @@ -1,5 +1,5 @@\r
66     -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)\r
67     -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)\r
68     +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)\r
69     +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)\r
70      thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
71      thread:XXX   2000-01-01 [1/1] searchbyfrom; search by from (inbox unread)\r
72      thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread)\r
73 \r
74 By setting a fixed time zone in the test script, these problems should\r
75 be eliminated.\r
76 \r
77 Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>\r
78 ---\r
79  test/notmuch-test |    2 ++\r
80  1 files changed, 2 insertions(+), 0 deletions(-)\r
81 \r
82 diff --git a/test/notmuch-test b/test/notmuch-test\r
83 index 2b76f04..f0741e1 100755\r
84 --- a/test/notmuch-test\r
85 +++ b/test/notmuch-test\r
86 @@ -1,6 +1,8 @@\r
87  #!/bin/bash\r
88  set -e\r
89  \r
90 +export TZ=UTC+8\r
91 +\r
92  find_notmuch_binary ()\r
93  {\r
94      dir=$1\r
95 -- \r
96 1.7.0.4\r
97 \r