[PATCH] test: Set fixed time zone
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 23 Apr 2010 07:36:45 +0000 (09:36 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:49 +0000 (09:36 -0800)
69/47cd05f3519dc5c77e56c8c598d52781d7a30f [new file with mode: 0644]

diff --git a/69/47cd05f3519dc5c77e56c8c598d52781d7a30f b/69/47cd05f3519dc5c77e56c8c598d52781d7a30f
new file mode 100644 (file)
index 0000000..2adc60e
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 73CBB4196F2\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 00:36:52 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ieXhB1zz1sMn for <notmuch@notmuchmail.org>;\r
+       Fri, 23 Apr 2010 00:36:51 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+       by olra.theworths.org (Postfix) with ESMTP id CDC67431FC1\r
+       for <notmuch@notmuchmail.org>; Fri, 23 Apr 2010 00:36:50 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.4])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id 138BC19F3412;\r
+       Fri, 23 Apr 2010 09:36:50 +0200 (CEST)\r
+X-Virus-Scanned: IMAP AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+       by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
+       port 10044)\r
+       with ESMTP id 8Q1YlJfBpLlK; Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+       by max.feld.cvut.cz (Postfix) with ESMTP id C6E4319F3417;\r
+       Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\r
+Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
+       (Authenticated sender: sojkam1)\r
+       by imap.feld.cvut.cz (Postfix) with ESMTPSA id C0365FA003;\r
+       Fri, 23 Apr 2010 09:36:48 +0200 (CEST)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
+       (envelope-from <sojkam1@fel.cvut.cz>)\r
+       id 1O5DRQ-0005qJ-7m; Fri, 23 Apr 2010 09:36:48 +0200\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] test: Set fixed time zone\r
+Date: Fri, 23 Apr 2010 09:36:45 +0200\r
+Message-Id: <1272008205-22432-1-git-send-email-sojkam1@fel.cvut.cz>\r
+X-Mailer: git-send-email 1.7.0.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 23 Apr 2010 07:36:52 -0000\r
+\r
+When the test suite is run in a different time zone that where Carl\r
+lives, some tests may fail depending on the time when the test suite is\r
+run. For example, just now I get:\r
+\r
+     Search for all messages ("*"):...                 FAIL\r
+    --- test-031.expected      2010-04-23 09:33:47.898634822 +0200\r
+    +++ test-031.output        2010-04-23 09:33:47.898634822 +0200\r
+    @@ -1,5 +1,5 @@\r
+    -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)\r
+    -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)\r
+    +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)\r
+    +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)\r
+     thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)\r
+     thread:XXX   2000-01-01 [1/1] searchbyfrom; search by from (inbox unread)\r
+     thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread)\r
+\r
+By setting a fixed time zone in the test script, these problems should\r
+be eliminated.\r
+\r
+Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>\r
+---\r
+ test/notmuch-test |    2 ++\r
+ 1 files changed, 2 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index 2b76f04..f0741e1 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -1,6 +1,8 @@\r
+ #!/bin/bash\r
+ set -e\r
\r
++export TZ=UTC+8\r
++\r
+ find_notmuch_binary ()\r
+ {\r
+     dir=$1\r
+-- \r
+1.7.0.4\r
+\r